Added variable in .env to enforce certain domains in account registrations (#1589)

Allow REQUIRE_MAIL_DOMAIN to not exist in addition to it being empty

Undo changes in config/locales/de_DE.yml

changed .env variable name to GREENLIGHT_ACCOUNT_HD; allowed only comma and no whitespace as separator

Allow the admin to change email-addresses, just enforce domain on registration

Co-authored-by: Gaja Sophie Peters <gaja.peters@uni-hamburg.de>
Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
EmmyGraugans
2021-06-01 23:11:15 +02:00
committed by GitHub
parent 0181678e1a
commit 505ed05c5a
4 changed files with 18 additions and 0 deletions

View File

@@ -105,6 +105,12 @@ LDAP_ATTRIBUTE_MAPPING=
#
ALLOW_GREENLIGHT_ACCOUNTS=true
# "hosted domain" part of the Email-Address required for signup for a greenlight account
# domain.com matches also mail.domain.com
# @domain.com does NOT match @mail.domain.com
# multiple domains can be separated by comma (with no whitespace!)
#GREENLIGHT_ACCOUNT_HD=@domain.com,subdomain-allowed.net
# To enable reCaptcha on the user sign up, define these 2 keys
# You can obtain these keys by registering your domain using the following url:
#