diff options
-rw-r--r-- | catdap.yml | 4 | ||||
-rw-r--r-- | lib/CatDap/Controller/register.pm | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -33,9 +33,9 @@ Model::User: register: login_regex: ^[a-z][a-z0-9]*$ - login_username_blacklist: + login_blacklist: - apache - login_domain_blacklist: + email_domain_blacklist: - armyspy.com - codehot.co.uk - dayrep.com diff --git a/lib/CatDap/Controller/register.pm b/lib/CatDap/Controller/register.pm index f33130a..889aabe 100644 --- a/lib/CatDap/Controller/register.pm +++ b/lib/CatDap/Controller/register.pm @@ -67,10 +67,10 @@ sub check : Local { close($etcpasswd); } - if (grep { /^$username$/ } @{${$c->config}{'register'}{'login_username_blacklist'}}) { + if (grep { /^$username$/ } @{${$c->config}{'register'}{'login_blacklist'}}) { push @errors, $c->loc('Username is not authorized to be used'); } - if ($email_obj and grep { $email_obj->host =~ /^\Q$_\E$/i } @{${$c->config}{'register'}{'login_domain_blacklist'}}) { + if ($email_obj and grep { $email_obj->host =~ /^\Q$_\E$/i } @{${$c->config}{'register'}{'email_domain_blacklist'}}) { push @errors, $c->loc('Email domain is not authorized to be used'); } |