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

commit commit

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