FIX: allow change password with TOTP

This commit is contained in:
Jeff Wong 2019-10-13 00:53:57 -07:00
parent 16d8e3f872
commit 2b74dc5885
1 changed files with 6 additions and 3 deletions

View File

@ -16,9 +16,12 @@ export default Ember.Controller.extend(PasswordValidation, {
"model.second_factor_required",
"model.security_key_required"
),
secondFactorMethod: Ember.computed.alias("model.security_key_required")
? SECOND_FACTOR_METHODS.SECURITY_KEY
: SECOND_FACTOR_METHODS.TOTP,
@computed("model.security_key_required")
secondFactorMethod(security_key_required) {
return security_key_required
? SECOND_FACTOR_METHODS.SECURITY_KEY
: SECOND_FACTOR_METHODS.TOTP;
},
passwordRequired: true,
errorMessage: null,
successMessage: null,