Revert "登录失败返回http状态码200而不是400"
This reverts commit 3e94ea6cdd7e2f2e06725ac67dacefa333058eab.
This commit is contained in:
@@ -80,7 +80,7 @@ public class CustomWebResponseExceptionTranslator implements WebResponseExceptio
|
||||
}
|
||||
|
||||
// 使用自定义的异常类进行包装
|
||||
return new ResponseEntity<>(new CustomOAuth2Exception(e.getMessage(), e), headers, HttpStatus.OK);
|
||||
return new ResponseEntity<>(new CustomOAuth2Exception(e.getMessage(), e), headers, HttpStatus.valueOf(status));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user