Skip to content

Commit

Permalink
Fix 2fa dialog confirmation. fix #515. fix #517
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Aug 16, 2018
1 parent 7dbe725 commit f1e373d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings/EditSecondFactorsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ export class EditSecondFactorsForm {
sf.name = name.value()
sf.type = type.selectedValue()
if (type.selectedValue() === SecondFactorType.u2f) {
if (verificationStatus !== VerificationStatus.Success) {
if (verificationStatus() !== VerificationStatus.Success) {
Dialog.error("unrecognizedU2fDevice_msg")
return
} else {
sf.u2f = u2fRegistrationData()
}
} else if (type.selectedValue() === SecondFactorType.totp) {
if (verificationStatus !== VerificationStatus.Success) {
if (verificationStatus() !== VerificationStatus.Success) {
Dialog.error("totpCodeEnter_msg")
return
} else {
Expand Down

0 comments on commit f1e373d

Please sign in to comment.