1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02: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

2
jslib

@ -1 +1 @@
Subproject commit eb48abbcf659ae20b2d0627467bccb56c272132e
Subproject commit 773c51901fe77165c40cfb018bf5b99a740b5e4a

View File

@ -25,7 +25,7 @@ export class RecoverDeleteComponent {
async submit() {
try {
const request = new DeleteRecoverRequest();
request.email = this.email.toLowerCase();
request.email = this.email.trim().toLowerCase();
this.formPromise = this.apiService.postAccountRecoverDelete(request);
await this.formPromise;
this.analytics.eventTrack.next({ action: 'Started Delete Recovery' });

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

View File

@ -38,7 +38,7 @@ export class ChangeEmailComponent {
return;
}
this.newEmail = this.newEmail.toLowerCase();
this.newEmail = this.newEmail.trim().toLowerCase();
if (!this.tokenSent) {
const request = new EmailTokenRequest();
request.newEmail = this.newEmail;