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

commit commit

上级 93e97256
...@@ -331,7 +331,7 @@ public class AuthController extends Controller { ...@@ -331,7 +331,7 @@ public class AuthController extends Controller {
Authentication authentication; Authentication authentication;
try { try {
authentication = authenticationManager.authenticate( authentication = authenticationManager.authenticate(
new UsernamePasswordAuthenticationToken(firebaseUid, null, AuthorityUtils.createAuthorityList("ROLE_USER"))); new UsernamePasswordAuthenticationToken(user, null, AuthorityUtils.createAuthorityList("ROLE_USER")));
} 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论