提交 c71f576d authored 作者: Whispa's avatar Whispa

commit commit

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