Skip to content

Commit

Permalink
chore: Lowercase email on user creation (#175)
Browse files Browse the repository at this point in the history
There's a few ways to solve this one, but this feels like a good balance
of visibility and pragmaticm.

For reference - we handle this with a DB trigger for `lowcal_sessions`

I've updated any email records on production to be all lowercase.
  • Loading branch information
DafyddLlyr authored Oct 26, 2023
1 parent 69c797c commit d0634c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requests/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function createUser(
{
first_name: args.firstName,
last_name: args.lastName,
email: args.email,
email: args.email.toLowerCase(),
is_platform_admin: args.isPlatformAdmin,
},
);
Expand Down

0 comments on commit d0634c1

Please sign in to comment.