Skip to content

Commit

Permalink
Fixes OATH create credential regression bug where a ':' would be adde…
Browse files Browse the repository at this point in the history
…d to the account name if the optional issuer was not present.
  • Loading branch information
jensutbult committed Oct 21, 2024
1 parent c3f11d9 commit 7ccb522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ + (NSString *)keyFromAccountName:(NSString *)name issuer:(NSString *)issuer peri
if (type == YKFOATHCredentialTypeTOTP && period != YKFOATHCredentialDefaultPeriod) {
[accountId appendFormat:@"%ld/", (unsigned long)period];
}
if (issuer != nil) {
if (issuer != nil && issuer.length > 0) {
[accountId appendFormat:@"%@:", issuer];
}
[accountId appendString:name];
Expand Down

0 comments on commit 7ccb522

Please sign in to comment.