1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 13:53:17 +00:00

trim email also

This commit is contained in:
Kyle Spearrin
2018-09-08 08:13:47 -04:00
parent 2629aaf368
commit 26aa79db1a
4 changed files with 4 additions and 4 deletions

View File

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