mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +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() {
|
async submit() {
|
||||||
try {
|
try {
|
||||||
const request = new DeleteRecoverRequest();
|
const request = new DeleteRecoverRequest();
|
||||||
request.email = this.email.toLowerCase();
|
request.email = this.email.trim().toLowerCase();
|
||||||
this.formPromise = this.apiService.postAccountRecoverDelete(request);
|
this.formPromise = this.apiService.postAccountRecoverDelete(request);
|
||||||
await this.formPromise;
|
await this.formPromise;
|
||||||
this.analytics.eventTrack.next({ action: 'Started Delete Recovery' });
|
this.analytics.eventTrack.next({ action: 'Started Delete Recovery' });
|
||||||
|
@ -30,7 +30,7 @@ export class RecoverTwoFactorComponent {
|
|||||||
try {
|
try {
|
||||||
const request = new TwoFactorRecoveryRequest();
|
const request = new TwoFactorRecoveryRequest();
|
||||||
request.recoveryCode = this.recoveryCode.replace(/\s/g, '').toLowerCase();
|
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);
|
const key = await this.authService.makePreloginKey(this.masterPassword, request.email);
|
||||||
request.masterPasswordHash = await this.cryptoService.hashPassword(this.masterPassword, key);
|
request.masterPasswordHash = await this.cryptoService.hashPassword(this.masterPassword, key);
|
||||||
this.formPromise = this.apiService.postTwoFactorRecover(request);
|
this.formPromise = this.apiService.postTwoFactorRecover(request);
|
||||||
|
@ -38,7 +38,7 @@ export class ChangeEmailComponent {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.newEmail = this.newEmail.toLowerCase();
|
this.newEmail = this.newEmail.trim().toLowerCase();
|
||||||
if (!this.tokenSent) {
|
if (!this.tokenSent) {
|
||||||
const request = new EmailTokenRequest();
|
const request = new EmailTokenRequest();
|
||||||
request.newEmail = this.newEmail;
|
request.newEmail = this.newEmail;
|
||||||
|
Loading…
Reference in New Issue
Block a user