Add a config option to whitelist users registration
Through whole email or domain email Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -12,7 +12,7 @@ export const beforeRegisterGuard: NavigationGuard = async function (to, from, ne
|
||||
|
||||
const config: IConfig = data.config;
|
||||
|
||||
if (!config.registrationsOpen) {
|
||||
if (!config.registrationsOpen && !config.registrationsWhitelist) {
|
||||
return next({
|
||||
name: ErrorRouteName.ERROR,
|
||||
query: { code: ErrorCode.REGISTRATION_CLOSED },
|
||||
|
||||
Reference in New Issue
Block a user