feat: Enforce single team when self-hosted (#1954)
* fix: Enforce single team when self hosting * test: positive case * refactor * fix: Visible error message on login screen for max teams scenario * Update Notices.js * lint
This commit is contained in:
7
server/utils/authentication.js
Normal file
7
server/utils/authentication.js
Normal file
@ -0,0 +1,7 @@
|
||||
// @flow
|
||||
|
||||
export function getAllowedDomains(): string[] {
|
||||
// GOOGLE_ALLOWED_DOMAINS included here for backwards compatability
|
||||
const env = process.env.ALLOWED_DOMAINS || process.env.GOOGLE_ALLOWED_DOMAINS;
|
||||
return env ? env.split(",") : [];
|
||||
}
|
Reference in New Issue
Block a user