mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix error logging in with user_id when phone_number is also enabled as a login method
This commit is contained in:
parent
c914ff52bf
commit
39f92673b3
1 changed files with 1 additions and 1 deletions
|
|
@ -2266,7 +2266,7 @@ class MemberController extends Member
|
|||
}
|
||||
|
||||
}
|
||||
elseif($config->identifiers && in_array('phone_number', $config->identifiers) && strpos($user_id, '@') === false)
|
||||
elseif($config->identifiers && in_array('phone_number', $config->identifiers) && strpos($user_id, '@') === false && !preg_match('/^[a-z]/i', $user_id))
|
||||
{
|
||||
if(preg_match('/^\+([0-9-]+)\.([0-9.-]+)$/', $user_id, $matches))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue