mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
trim email also
This commit is contained in:
parent
eb48abbcf6
commit
773c51901f
@ -58,7 +58,7 @@ export class RegisterComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.name = this.name === '' ? null : this.name;
|
this.name = this.name === '' ? null : this.name;
|
||||||
this.email = this.email.toLowerCase();
|
this.email = this.email.trim().toLowerCase();
|
||||||
const kdf = KdfType.PBKDF2_SHA256;
|
const kdf = KdfType.PBKDF2_SHA256;
|
||||||
const kdfIterations = 5000;
|
const kdfIterations = 5000;
|
||||||
const key = await this.cryptoService.makeKey(this.masterPassword, this.email, kdf, kdfIterations);
|
const key = await this.cryptoService.makeKey(this.masterPassword, this.email, kdf, kdfIterations);
|
||||||
|
@ -199,7 +199,7 @@ export class AuthService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async makePreloginKey(masterPassword: string, email: string): Promise<SymmetricCryptoKey> {
|
async makePreloginKey(masterPassword: string, email: string): Promise<SymmetricCryptoKey> {
|
||||||
email = email.toLowerCase();
|
email = email.trim().toLowerCase();
|
||||||
this.kdf = null;
|
this.kdf = null;
|
||||||
this.kdfIterations = null;
|
this.kdfIterations = null;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user