Trim whitespaces from manual secret input

This commit is contained in:
Neeraj Gupta 2023-01-28 18:42:32 +05:30
parent 41c33003ac
commit b8f1f00d2f
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -113,7 +113,7 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
final code = Code.fromAccountAndSecret(
_accountController.text.trim(),
_issuerController.text.trim(),
_secretController.text.trim(),
_secretController.text.trim().replaceAll(' ', ''),
);
// Verify the validity of the code
getTotp(code);