Restrict signups to theoremone.co emails

This commit is contained in:
Austin Chen 2022-02-28 16:05:31 -08:00
parent 9258cf0f3d
commit bfefa61d35

View File

@ -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) {