From cf33349ce98ad0abf086d1afa9b98cc7476fb623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Wed, 22 Feb 2017 20:59:16 +0100 Subject: Rename login_domain_blacklist to email_domain_blacklist and login_username_blacklist to login_blacklist --- lib/CatDap/Controller/register.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CatDap/Controller/register.pm') 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'); } -- cgit v1.2.1