be more tolerant of whitespace in email addresses
This commit is contained in:
parent
10cffa8afa
commit
c475e58e64
@ -104,7 +104,7 @@ class DomainWhitelistPlugin extends Plugin
|
|||||||
|
|
||||||
$parts = explode('@', $email);
|
$parts = explode('@', $email);
|
||||||
|
|
||||||
$userDomain = strtolower($parts[1]);
|
$userDomain = strtolower(trim($parts[1]));
|
||||||
|
|
||||||
return in_array($userDomain, $whitelist);
|
return in_array($userDomain, $whitelist);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user