Update EmailService, make case insensitive

pull/2449/head
Daniel Supernault
parent f2c9d16a42
commit 1b41d66446
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -12,7 +12,7 @@ class EmailService {
$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()

Loading…
Cancel
Save