refactor: 用户登录支持扫码用户输入密码进入系统

This commit is contained in:
CaptainB 2024-06-14 11:42:27 +08:00 committed by 刘瑞斌
parent 20e365618c
commit bd9f49d485

View File

@ -95,7 +95,7 @@ public class LocalRealm extends AuthorizingRealm {
UserDTO user = userLoginService.getUserDTO(userId);
String msg;
if (user == null) {
user = userLoginService.getUserDTOByEmail(userId, UserSource.LOCAL.name());
user = userLoginService.getUserDTOByEmail(userId);
if (user == null) {
msg = "The user does not exist: " + userId;
logger.warn(msg);