Update EmailService, make case insensitive

This commit is contained in:
Daniel Supernault 2020-11-21 20:47:13 -07:00
parent f2c9d16a42
commit 1b41d66446
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -12,7 +12,7 @@ class EmailService {
$parts = explode('@', $email); $parts = explode('@', $email);
return in_array(last($parts), self::bannedDomains()); return in_array(strtolower(last($parts)), array_map('strtolower', self::bannedDomains()));
} }
public static function bannedDomains() public static function bannedDomains()