Restrict signups to theoremone.co emails
This commit is contained in:
parent
9258cf0f3d
commit
bfefa61d35
|
@ -1,6 +1,5 @@
|
|||
export function isWhitelisted(email?: string) {
|
||||
return true
|
||||
// e.g. return email.endsWith('@theoremone.co') || isAdmin(email)
|
||||
return email && (email.endsWith('@theoremone.co') || isAdmin(email))
|
||||
}
|
||||
|
||||
export function isAdmin(email: string) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user