Merge pull request #46 from ente-io/20_secret_with_spaces

Trim whitespaces from manual secret input
This commit is contained in:
Neeraj Gupta 2023-01-28 18:44:56 +05:30 committed by GitHub
commit 0c34cfcc5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);