mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
normalize name and email on registration
This commit is contained in:
@@ -100,6 +100,8 @@ export class RegisterComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.name = this.name === '' ? null : this.name;
|
||||||
|
this.email = this.email.trim().toLowerCase();
|
||||||
const kdf = KdfType.PBKDF2_SHA256;
|
const kdf = KdfType.PBKDF2_SHA256;
|
||||||
const useLowerKdf = this.platformUtilsService.isEdge() || this.platformUtilsService.isIE();
|
const useLowerKdf = this.platformUtilsService.isEdge() || this.platformUtilsService.isIE();
|
||||||
const kdfIterations = useLowerKdf ? 10000 : 100000;
|
const kdfIterations = useLowerKdf ? 10000 : 100000;
|
||||||
|
|||||||
Reference in New Issue
Block a user