Skip to content

Commit

Permalink
[Optimization] Prompt for optimizing password errors (DataLinkDC#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored Mar 4, 2024
1 parent 0316571 commit 5ac35a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public Result<UserDTO> 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
Expand Down

0 comments on commit 5ac35a4

Please sign in to comment.