generated from VLADIMIR/template
add login route
This commit is contained in:
@@ -47,3 +47,13 @@ func (s *server) RefreshPassword(ctx context.Context, req *proto.RefreshPassword
|
||||
}
|
||||
return &proto.RefreshPasswordRsp{}, nil
|
||||
}
|
||||
|
||||
func (s *server) Login(ctx context.Context, req *proto.LoginReq) (*proto.LoginRsp, error) {
|
||||
err := s.usersService.Login(ctx, req.Email, req.Password)
|
||||
if err != nil {
|
||||
return &proto.LoginRsp{
|
||||
Error: err.Error(),
|
||||
}, nil
|
||||
}
|
||||
return &proto.LoginRsp{}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user