This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app/components/security-key-form.js
2020-09-04 13:42:47 +02:00

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);
},
},
});