forked from GNUsocial/gnu-social
let other validity checks go through first
This commit is contained in:
parent
55ebddb5fd
commit
2019d32b3d
@ -52,8 +52,9 @@ class DomainWhitelistPlugin extends Plugin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onStartValidateUserEmail($user, $email, &$valid)
|
function onEndValidateUserEmail($user, $email, &$valid)
|
||||||
{
|
{
|
||||||
|
if ($valid) { // it's otherwise valid
|
||||||
if (!$this->matchesWhitelist($email)) {
|
if (!$this->matchesWhitelist($email)) {
|
||||||
$whitelist = $this->getWhitelist();
|
$whitelist = $this->getWhitelist();
|
||||||
if (count($whitelist) == 1) {
|
if (count($whitelist) == 1) {
|
||||||
@ -65,6 +66,7 @@ class DomainWhitelistPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
throw new ClientException($message);
|
throw new ClientException($message);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user