Merge pull request #46 from ente-io/20_secret_with_spaces
Trim whitespaces from manual secret input
This commit is contained in:
commit
0c34cfcc5e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue