aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CatDap/Controller/register.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2017-02-22 20:59:16 +0100
committerNicolas Lécureuil <neoclust@mageia.org>2017-02-22 23:44:58 +0100
commitcf33349ce98ad0abf086d1afa9b98cc7476fb623 (patch)
treed2a8bfd45cf182c013b2b0aaca0ed29522e79f9b /lib/CatDap/Controller/register.pm
parent4a9a13c055e5f47f627ebc30134e14107d05b867 (diff)
downloadidentity-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
Diffstat (limited to 'lib/CatDap/Controller/register.pm')
-rw-r--r--lib/CatDap/Controller/register.pm4
1 files changed, 2 insertions, 2 deletions
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');
}