Fix #2044 set identifier to 'user_id' unless email is the only option

이메일 이외의 로그인 방법이 하나라도 선택되어 있다면
identifier 설정은 user_id로 고정
This commit is contained in:
Kijin Sung 2023-02-26 21:45:51 +09:00
parent cc40b156da
commit 512ca07680
3 changed files with 6 additions and 5 deletions

View file

@ -564,7 +564,7 @@ class MemberAdminController extends Member
return new BaseObject(-1, 'msg_need_enabled_identifier');
}
$args->signupForm = $config->signupForm;
$args->identifier = array_first($args->identifiers);
$args->identifier = (count($args->identifiers) == 1 && $args->identifiers[0] == 'email_address') ? 'email_address' : 'user_id';
if(!$args->change_password_date)
{