mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-27 08:27:21 +01:00
add cookie consent banner and tests (#163)
* add cookie consent banner and tests * update docs and app_diff * Create .env.client.diff * Update main.wasp.diff * add migrattion_lock diff again * small typo fixes
This commit is contained in:
26
opensaas-sh/app_diff/src/server/auth/setUsername.ts.diff
Normal file
26
opensaas-sh/app_diff/src/server/auth/setUsername.ts.diff
Normal file
@@ -0,0 +1,26 @@
|
||||
--- template/app/src/server/auth/setUsername.ts
|
||||
+++ opensaas-sh/app/src/server/auth/setUsername.ts
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
export const getEmailUserFields = defineUserSignupFields({
|
||||
username: (data: any) => data.email,
|
||||
- isAdmin: (data: any) => adminEmails.includes(data.email),
|
||||
email: (data: any) => data.email,
|
||||
});
|
||||
|
||||
@@ -13,7 +12,6 @@
|
||||
// instead of ["user"] and access args.profile.username instead
|
||||
email: (data: any) => data.profile.emails[0].email,
|
||||
username: (data: any) => data.profile.login,
|
||||
- isAdmin: (data: any) => adminEmails.includes(data.profile.emails[0].email),
|
||||
});
|
||||
|
||||
export function getGitHubAuthConfig() {
|
||||
@@ -25,7 +23,6 @@
|
||||
export const getGoogleUserFields = defineUserSignupFields({
|
||||
email: (data: any) => data.profile.email,
|
||||
username: (data: any) => data.profile.name,
|
||||
- isAdmin: (data: any) => adminEmails.includes(data.profile.email),
|
||||
});
|
||||
|
||||
export function getGoogleAuthConfig() {
|
||||
Reference in New Issue
Block a user