Skip to content

Commit

Permalink
coerce email to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 16, 2024
1 parent 0dfa06e commit 3f55a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/registration/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async function saveRegistration() {
Object.assign(registrationForm, basic, professional, certifications);
let userRegInfo = {}

userRegInfo.email = registrationForm.email;
userRegInfo.email = registrationForm.email.toLowerCase();
userRegInfo.userType = "[]"
userRegInfo.creator = userRegInfo.email;
userRegInfo.registration = registrationForm;
Expand All @@ -319,7 +319,7 @@ async function saveRegistration() {
let kcUserInfo = {
"firstName": registrationForm.firstName,
"lastName": registrationForm.lastName,
"email": registrationForm.email,
"email": registrationForm.email.toLowerCase(),
"username": registrationForm.email,
"enabled": "true",
}
Expand Down

0 comments on commit 3f55a05

Please sign in to comment.