mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-739] Using a space at the beginning of otpauth:// generate a wrong OTP (#11204)
* Trimmed tariling whitespace from totp field * Trimmed tariling whitespace from totp field * Fix failing test
This commit is contained in:
@@ -125,7 +125,7 @@ export class LoginDetailsSectionComponent implements OnInit {
|
||||
Object.assign(cipher.login, {
|
||||
username: value.username,
|
||||
password: value.password,
|
||||
totp: value.totp,
|
||||
totp: value.totp?.trim(),
|
||||
} as LoginView);
|
||||
|
||||
return cipher;
|
||||
|
||||
Reference in New Issue
Block a user