Unverified Commit 5ac35a4b authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Optimization] Prompt for optimizing password errors (#3231)

parent 03165717
...@@ -182,7 +182,7 @@ public class UserServiceImpl extends SuperServiceImpl<UserMapper, User> implemen ...@@ -182,7 +182,7 @@ public class UserServiceImpl extends SuperServiceImpl<UserMapper, User> implemen
user = loginDTO.isLdapLogin() ? ldapLogin(loginDTO) : localLogin(loginDTO); user = loginDTO.isLdapLogin() ? ldapLogin(loginDTO) : localLogin(loginDTO);
} catch (AuthException e) { } catch (AuthException e) {
// Handle authentication exceptions and return the corresponding error status // 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 // Check if the user is enabled
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment