13 lines
344 B
JavaScript
13 lines
344 B
JavaScript
import Component from "@ember/component";
|
|
import { SECOND_FACTOR_METHODS } from "discourse/models/user";
|
|
|
|
export default Component.extend({
|
|
actions: {
|
|
useAnotherMethod() {
|
|
this.set("showSecurityKey", false);
|
|
this.set("showSecondFactor", true);
|
|
this.set("secondFactorMethod", SECOND_FACTOR_METHODS.TOTP);
|
|
},
|
|
},
|
|
});
|