code: def generate_reset_password_token(self, user):
          
          password_hash = self.hash_data(user.password) if user.password else None
          data = [str(user.id), password_hash]
          return self.security.reset_serializer.dumps(data)
docs: Generates a unique reset password token for the specified user.
  
          :param user: The user to work with