🚑 Fix security issue in authenticate grpc api

This commit is contained in:
LittleSheep 2024-03-17 23:15:10 +08:00
parent b84dca981f
commit 5087f00eb2

View File

@ -30,6 +30,7 @@ func (v *Server) Authenticate(_ context.Context, in *proto.AuthRequest) (*proto.
AccessToken: &atk,
RefreshToken: &rtk,
Userinfo: &proto.Userinfo{
Id: uint64(user.ID),
Name: user.Name,
Nick: user.Nick,
Email: user.GetPrimaryEmail().Content,