mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
fix typo
This commit is contained in:
@@ -141,7 +141,7 @@ func (s *User) UpdatePassword(ctx context.Context, req *pb.UpdatePasswordRequest
|
|||||||
return errors.InternalServerError("user.updatepassword", err.Error())
|
return errors.InternalServerError("user.updatepassword", err.Error())
|
||||||
}
|
}
|
||||||
if req.NewPassword != req.ConfirmPassword {
|
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)
|
salt, hashed, err := s.domain.SaltAndPassword(ctx, usr.Id)
|
||||||
|
|||||||
Reference in New Issue
Block a user