normalize name and email on registration

This commit is contained in:
Kyle Spearrin 2018-11-28 08:54:15 -05:00
parent 6920cf77b9
commit 739d308498
1 changed files with 2 additions and 0 deletions

View File

@ -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 useLowerKdf = this.platformUtilsService.isEdge() || this.platformUtilsService.isIE();
const kdfIterations = useLowerKdf ? 10000 : 100000;