Trim whitespaces from manual secret input
This commit is contained in:
parent
41c33003ac
commit
b8f1f00d2f
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