From 5ac35a4b2367b752381b4cc292aaf09501c9086e Mon Sep 17 00:00:00 2001 From: Zzm0809 <934230207@qq.com> Date: Mon, 4 Mar 2024 23:07:55 +0800 Subject: [PATCH] [Optimization] Prompt for optimizing password errors (#3231) --- .../src/main/java/org/dinky/service/impl/UserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dinky-admin/src/main/java/org/dinky/service/impl/UserServiceImpl.java b/dinky-admin/src/main/java/org/dinky/service/impl/UserServiceImpl.java index 23b562ebf4..11b867efad 100644 --- a/dinky-admin/src/main/java/org/dinky/service/impl/UserServiceImpl.java +++ b/dinky-admin/src/main/java/org/dinky/service/impl/UserServiceImpl.java @@ -182,7 +182,7 @@ public Result loginUser(LoginDTO loginDTO) { user = loginDTO.isLdapLogin() ? ldapLogin(loginDTO) : localLogin(loginDTO); } catch (AuthException e) { // Handle authentication exceptions and return the corresponding error status - return Result.authorizeFailed(Status.USER_NOT_EXIST, loginDTO.getUsername()); + return Result.authorizeFailed(e.getStatus()); } // Check if the user is enabled