Skip to content

Commit 7ccb522

Browse files
committed
Fixes OATH create credential regression bug where a ':' would be added to the account name if the optional issuer was not present.
1 parent c3f11d9 commit 7ccb522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YubiKit/YubiKit/Connections/Shared/Sessions/OATH/YKFOATHCredentialUtils.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ + (NSString *)keyFromAccountName:(NSString *)name issuer:(NSString *)issuer peri
3333
if (type == YKFOATHCredentialTypeTOTP && period != YKFOATHCredentialDefaultPeriod) {
3434
[accountId appendFormat:@"%ld/", (unsigned long)period];
3535
}
36-
if (issuer != nil) {
36+
if (issuer != nil && issuer.length > 0) {
3737
[accountId appendFormat:@"%@:", issuer];
3838
}
3939
[accountId appendString:name];

0 commit comments

Comments
 (0)