mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update EmailService, make case insensitive
This commit is contained in:
parent
f2c9d16a42
commit
1b41d66446
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue