Skip to content

Commit d83bf95

Browse files
committed
#398 使用中文返回登录错误信息
1 parent bcfd4b7 commit d83bf95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

saturn-console-api/src/main/java/com/vip/saturn/job/console/controller/gui/AuthenticationController.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public SuccessResponseEntity login(@RequestParam String username, @RequestParam
3232

3333
User user = authenticationService.authenticate(username, password);
3434
if (user == null) {
35-
throw new SaturnJobConsoleException(SaturnJobConsoleException.ERROR_CODE_AUTHN_FAIL,
36-
"Invalid username or password");
35+
throw new SaturnJobConsoleException(SaturnJobConsoleException.ERROR_CODE_AUTHN_FAIL, "用户名或密码不正确");
3736
}
3837

3938
request.getSession().setAttribute(SessionAttributeKeys.LOGIN_USER_NAME, user.getUserName());

0 commit comments

Comments
 (0)