This commit is contained in:
Asim Aslam
2021-11-08 14:55:01 +00:00
parent 33f9259d4a
commit 9d1871a618

View File

@@ -141,7 +141,7 @@ func (s *User) UpdatePassword(ctx context.Context, req *pb.UpdatePasswordRequest
return errors.InternalServerError("user.updatepassword", err.Error())
}
if req.NewPassword != req.ConfirmPassword {
return errors.InternalServerError("user.updatepassword", "Passwords don't math")
return errors.InternalServerError("user.updatepassword", "Passwords don't match")
}
salt, hashed, err := s.domain.SaltAndPassword(ctx, usr.Id)