🚑 Fix security issue in authenticate grpc api
This commit is contained in:
parent
b84dca981f
commit
5087f00eb2
@ -30,6 +30,7 @@ func (v *Server) Authenticate(_ context.Context, in *proto.AuthRequest) (*proto.
|
|||||||
AccessToken: &atk,
|
AccessToken: &atk,
|
||||||
RefreshToken: &rtk,
|
RefreshToken: &rtk,
|
||||||
Userinfo: &proto.Userinfo{
|
Userinfo: &proto.Userinfo{
|
||||||
|
Id: uint64(user.ID),
|
||||||
Name: user.Name,
|
Name: user.Name,
|
||||||
Nick: user.Nick,
|
Nick: user.Nick,
|
||||||
Email: user.GetPrimaryEmail().Content,
|
Email: user.GetPrimaryEmail().Content,
|
||||||
|
Loading…
Reference in New Issue
Block a user