mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-04-10 04:49:03 +02:00
Update setUsername.ts (#73)
Add email to the user's e-mail field upon registration. Otherwise, Stripe payments won't work, as users signed up with the "email" method won't have anything in their e-mail field.
This commit is contained in:
parent
aa6b57cafb
commit
731ce7c00c
@ -9,6 +9,7 @@ const adminEmails = process.env.ADMIN_EMAILS?.split(',') || [];
|
||||
export const getEmailUserFields = defineUserSignupFields({
|
||||
username: (data: any) => data.email,
|
||||
isAdmin : (data: any) => adminEmails.includes(data.email),
|
||||
email: (data: any) => data.email,
|
||||
});
|
||||
|
||||
export const getGitHubUserFields = defineUserSignupFields({
|
||||
|
Loading…
x
Reference in New Issue
Block a user