New login screen (#1331)
* wip * feat: first draft of auth.config * chore: auth methodS * chore: styling * styling, styling, styling * feat: Auth notices * chore: Remove server-rendered pages, move shared/components -> components * lint * cleanup * cleanup * fix: Remove unused component * fix: Ensure env variables in prod too * style tweaks * fix: Entering SSO email into login form fails fix: Tweak language around guest signin
This commit is contained in:
@ -60,8 +60,14 @@ export function stripSubdomain(hostname: string) {
|
||||
|
||||
export function isCustomSubdomain(hostname: string) {
|
||||
const parsed = parseDomain(hostname);
|
||||
if (!parsed) return false;
|
||||
if (!parsed.subdomain || parsed.subdomain === "www") return false;
|
||||
if (
|
||||
!parsed ||
|
||||
!parsed.subdomain ||
|
||||
parsed.subdomain === "app" ||
|
||||
parsed.subdomain === "www"
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -71,6 +77,7 @@ export const RESERVED_SUBDOMAINS = [
|
||||
"admin",
|
||||
"advertising",
|
||||
"api",
|
||||
"app",
|
||||
"assets",
|
||||
"archive",
|
||||
"beta",
|
||||
|
Reference in New Issue
Block a user