Skip to content

Commit 308cd03

Browse files
committed
ease_SecAttrAccount 的 HOTP
1 parent eb750e6 commit 308cd03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Coding_iOS/Ease_2FA/GoogleOTP/OTPAuthURL.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ - (BOOL)saveToKeychain {
225225
forKey:(__bridge id)kSecAttrGeneric];
226226
OSStatus status = noErr;
227227

228-
if ([self isInKeychain]) {
228+
if ([self isInKeychain] || self.ease_SecAttrAccount.length > 0) {
229229
NSDictionary *query = @{(__bridge id)kSecClass: (__bridge id)kSecClassGenericPassword,
230230
(__bridge id)kSecValuePersistentRef: self.keychainItemRef};
231231

0 commit comments

Comments
 (0)