提交 5ee8c47c authored 作者: Whispa's avatar Whispa

commit commit

上级 dd507ae4
...@@ -330,7 +330,7 @@ public class AuthController extends Controller { ...@@ -330,7 +330,7 @@ public class AuthController extends Controller {
Authentication authentication; Authentication authentication;
try { try {
authentication = new UsernamePasswordAuthenticationToken(user, null); authentication = new UsernamePasswordAuthenticationToken(UserDetailsImpl.build(user), null);
} catch (BadCredentialsException e) { } catch (BadCredentialsException e) {
return new Result(ResultCodeEnum.VALIDATE_ERROR.getCode(), "Invalid username or password"); return new Result(ResultCodeEnum.VALIDATE_ERROR.getCode(), "Invalid username or password");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论