mirror of
https://github.com/bitwarden/web
synced 2025-12-11 13:53:17 +00:00
trim email also
This commit is contained in:
@@ -30,7 +30,7 @@ export class RecoverTwoFactorComponent {
|
||||
try {
|
||||
const request = new TwoFactorRecoveryRequest();
|
||||
request.recoveryCode = this.recoveryCode.replace(/\s/g, '').toLowerCase();
|
||||
request.email = this.email.toLowerCase();
|
||||
request.email = this.email.trim().toLowerCase();
|
||||
const key = await this.authService.makePreloginKey(this.masterPassword, request.email);
|
||||
request.masterPasswordHash = await this.cryptoService.hashPassword(this.masterPassword, key);
|
||||
this.formPromise = this.apiService.postTwoFactorRecover(request);
|
||||
|
||||
Reference in New Issue
Block a user