Skip to content

Commit 17429df

Browse files
committed
Fixed bug resulting in HmacOTP Secret being stored instead of TimeOTP secret when updating and entry
1 parent 12f5613 commit 17429df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

KeePassKit/Cryptography/KPKTimeOTPGenerator.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ - (void)saveToEntry:(KPKEntry *)entry {
164164
}
165165
}
166166
if(!secretStored) {
167-
secretBase32Attribute = [[KPKAttribute alloc] initWithKey:kKPKAttributeKeyHmacOTPSecretBase32 value:[self.key base32EncodedStringWithOptions:0]];
167+
secretBase32Attribute = [[KPKAttribute alloc] initWithKey:kKPKAttributeKeyTimeOTPSecretBase32 value:[self.key base32EncodedStringWithOptions:0]];
168168
[entry addCustomAttribute:secretBase32Attribute];
169169
}
170170

0 commit comments

Comments
 (0)