Fix a bug about OTP token.
This commit is contained in:
parent
527a208c4f
commit
8d0a186c2e
1 changed files with 2 additions and 0 deletions
|
|
@ -178,6 +178,8 @@ class Password {
|
|||
|
||||
*/
|
||||
private func updateOtpToken() {
|
||||
self.otpToken = nil
|
||||
|
||||
// get otpauth, if we are able to generate a token, return
|
||||
if var otpauthString = getAdditionValue(withKey: "otpauth") {
|
||||
if !otpauthString.hasPrefix("otpauth:") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue