We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d5f721 commit bccbda3Copy full SHA for bccbda3
lib/oath/views/add_account_page.dart
@@ -237,7 +237,10 @@ class _OathAddAccountPageState extends ConsumerState<OathAddAccountPage> {
237
final issuerMaxLength = max(issuerRemaining, 1);
238
final nameMaxLength = max(nameRemaining, 1);
239
240
- final secret = _secretController.text.replaceAll(' ', '');
+ // Remove whitespace and padding
241
+ final secret = _secretController.text
242
+ .replaceAll(' ', '')
243
+ .replaceFirst(RegExp(r'=+$'), '');
244
final secretLengthValid = secret.length * 5 % 8 < 5;
245
final secretFormatValid = Format.base32.isValid(secret);
246
0 commit comments