diff --git a/jslib b/jslib index eb48abbc..773c5190 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 d97bb033..c1f36160 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 6c86cda6..02f77d86 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 ba6926a6..1e4bd496 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;