mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
Fix no autologin after signup if phone number is the only available identifier #2485
This commit is contained in:
parent
b5a16dad5e
commit
a5b9e11831
1 changed files with 16 additions and 4 deletions
|
|
@ -873,12 +873,24 @@ class MemberController extends Member
|
||||||
$this->putSignature($args->member_srl, $signature);
|
$this->putSignature($args->member_srl, $signature);
|
||||||
|
|
||||||
// Log-in
|
// Log-in
|
||||||
if($config->enable_confirm != 'Y')
|
if ($config->enable_confirm != 'Y')
|
||||||
{
|
{
|
||||||
$output = $this->doLogin($args->{$config->identifier});
|
if (isset($config->identifiers) && is_array($config->identifiers))
|
||||||
if(!$output->toBool()) {
|
{
|
||||||
if($output->error == -9)
|
$identifier = array_first($config->identifiers);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$identifier = $config->identifier ?? 'user_id';
|
||||||
|
}
|
||||||
|
|
||||||
|
$output = $this->doLogin($args->{$identifier});
|
||||||
|
if (!$output->toBool())
|
||||||
|
{
|
||||||
|
if ($output->error == -9)
|
||||||
|
{
|
||||||
$output->error = -11;
|
$output->error = -11;
|
||||||
|
}
|
||||||
return $this->setRedirectUrl(getUrl('', 'act', 'dispMemberLoginForm'), $output);
|
return $this->setRedirectUrl(getUrl('', 'act', 'dispMemberLoginForm'), $output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue