Fix: Handle empty spaces in qrCode secrets
This commit is contained in:
@@ -35,5 +35,5 @@ otp.Algorithm _getAlgorithm(Code code) {
|
||||
}
|
||||
|
||||
String getSanitizedSecret(String secret) {
|
||||
return secret.toUpperCase().trim();
|
||||
return secret.toUpperCase().trim().replaceAll(' ', '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user