Skip to content

Commit

Permalink
UserAuthService.php fix:获取主键value 而不是主键 key (Tab 按快了)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaBaoFa committed Jul 5, 2024
1 parent b11c510 commit ac9f413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/System/Service/Dependencies/UserAuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function login(UserServiceVo $userServiceVo): string
if ($mapper->checkPass($userServiceVo->getPassword(), $userinfo->password)) {
if (
($userinfo->status == SystemUser::USER_NORMAL)
|| ($userinfo->status == SystemUser::USER_BAN && $userinfo->getKeyName() == env('SUPER_ADMIN'))
|| ($userinfo->status == SystemUser::USER_BAN && $userinfo->getKey() == env('SUPER_ADMIN'))
) {
$userLoginAfter->message = t('jwt.login_success');
$token = user()->getToken($userLoginAfter->userinfo);
Expand Down

0 comments on commit ac9f413

Please sign in to comment.