Fix: Handle empty spaces in qrCode secrets

This commit is contained in:
Neeraj Gupta
2023-06-09 14:57:31 +05:30
parent a95394a9b2
commit 79de39f92a

View File

@@ -35,5 +35,5 @@ otp.Algorithm _getAlgorithm(Code code) {
}
String getSanitizedSecret(String secret) {
return secret.toUpperCase().trim();
return secret.toUpperCase().trim().replaceAll(' ', '');
}