Skip to content

Commit 8a8fae1

Browse files
committed
Allow the creation of a token with no name, as long as it has an issuer string
1 parent 0385987 commit 8a8fae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Authenticator/Classes/OTPTokenEntryViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ - (void)validateForm
239239

240240
- (BOOL)formIsValid
241241
{
242-
return (self.accountNameCell.textField.text.length &&
242+
return ((self.issuerCell.textField.text.length ||
243+
self.accountNameCell.textField.text.length) &&
243244
self.secretKeyCell.textField.text.length);
244245
}
245246

0 commit comments

Comments
 (0)