Allow username or email in login form
This commit is contained in:
parent
3f8593268e
commit
74ad4038ac
|
@ -141,7 +141,7 @@ class Nickname
|
|||
|
||||
if (mb_strlen($str) < 1) {
|
||||
throw new NicknameEmptyException();
|
||||
} elseif (!self::isCanonical($str)) {
|
||||
} elseif (!self::isCanonical($str) && !filter_var($str, FILTER_VALIDATE_EMAIL)) {
|
||||
throw new NicknameInvalidException();
|
||||
} elseif (self::isBlacklisted($str)) {
|
||||
throw new NicknameBlacklistedException();
|
||||
|
|
Loading…
Reference in New Issue
Block a user