diff options
author | Frédéric Buclin <LpSolit@netscape.net> | 2017-02-22 20:59:16 +0100 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-02-22 23:44:58 +0100 |
commit | cf33349ce98ad0abf086d1afa9b98cc7476fb623 (patch) | |
tree | d2a8bfd45cf182c013b2b0aaca0ed29522e79f9b | |
parent | 4a9a13c055e5f47f627ebc30134e14107d05b867 (diff) | |
download | identity-cf33349ce98ad0abf086d1afa9b98cc7476fb623.tar identity-cf33349ce98ad0abf086d1afa9b98cc7476fb623.tar.gz identity-cf33349ce98ad0abf086d1afa9b98cc7476fb623.tar.bz2 identity-cf33349ce98ad0abf086d1afa9b98cc7476fb623.tar.xz identity-cf33349ce98ad0abf086d1afa9b98cc7476fb623.zip |
Rename login_domain_blacklist to email_domain_blacklist and login_username_blacklist to login_blacklist
-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'); } |