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:
@@ -48,6 +48,11 @@ export const errors: IError[] = [
|
||||
value: i18n.t("The current identity doesn't have any permission on this event. You should probably change it.") as string,
|
||||
suggestRefresh: false,
|
||||
},
|
||||
{
|
||||
match: /Your email is not on the whitelist$/,
|
||||
value: i18n.t("Your email is not whitelisted, you can't register.") as string,
|
||||
suggestRefresh: false,
|
||||
},
|
||||
{
|
||||
match: /Cannot remove the last identity of a user/,
|
||||
value: i18n.t("You can't remove your last identity.") as string,
|
||||
|
||||
Reference in New Issue
Block a user