From 8d0a186c2e4d11c03e16423a8a5ef6721d76044d Mon Sep 17 00:00:00 2001 From: Yishi Lin Date: Mon, 27 Mar 2017 23:06:32 +0800 Subject: [PATCH] Fix a bug about OTP token. --- pass/Models/Password.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pass/Models/Password.swift b/pass/Models/Password.swift index 1d17846..fcdecac 100644 --- a/pass/Models/Password.swift +++ b/pass/Models/Password.swift @@ -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:") {