1
0
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:
SmithThe4th
2024-09-23 16:45:53 -04:00
committed by GitHub
parent 073fd29206
commit 0db179e974
2 changed files with 6 additions and 1 deletions

View File

@@ -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;