change some comments

This commit is contained in:
Asim Aslam
2022-02-09 12:57:13 +00:00
parent e3a83152fe
commit d86514de46
3 changed files with 41 additions and 19 deletions

View File

@@ -257,7 +257,7 @@ func (s *User) VerifyEmail(ctx context.Context, req *pb.VerifyEmailRequest, rsp
return errors.BadRequest("user.verifyemail", "missing email")
}
if len(req.Token) == 0 {
return errors.BadRequest("user.verifyemail", "missing token")
return errors.BadRequest("user.verifytoken", "missing token")
}
// check the token exists