diff --git a/jslib b/jslib index eb48abbcf65..773c51901fe 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit eb48abbcf659ae20b2d0627467bccb56c272132e +Subproject commit 773c51901fe77165c40cfb018bf5b99a740b5e4a diff --git a/src/app/accounts/recover-delete.component.ts b/src/app/accounts/recover-delete.component.ts index d97bb033463..c1f36160515 100644 --- a/src/app/accounts/recover-delete.component.ts +++ b/src/app/accounts/recover-delete.component.ts @@ -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' }); diff --git a/src/app/accounts/recover-two-factor.component.ts b/src/app/accounts/recover-two-factor.component.ts index 6c86cda69e0..02f77d8690d 100644 --- a/src/app/accounts/recover-two-factor.component.ts +++ b/src/app/accounts/recover-two-factor.component.ts @@ -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); diff --git a/src/app/settings/change-email.component.ts b/src/app/settings/change-email.component.ts index ba6926a675a..1e4bd496a52 100644 --- a/src/app/settings/change-email.component.ts +++ b/src/app/settings/change-email.component.ts @@ -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;