mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
trim email also
This commit is contained in:
parent
2629aaf368
commit
26aa79db1a
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit eb48abbcf659ae20b2d0627467bccb56c272132e
|
||||
Subproject commit 773c51901fe77165c40cfb018bf5b99a740b5e4a
|
@ -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' });
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user