Fix a bug about OTP token.

This commit is contained in:
Yishi Lin 2017-03-27 23:06:32 +08:00
parent 527a208c4f
commit 8d0a186c2e

View file

@ -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:") {