docs: def change_password(self, password):
          """
          Change the password.
          :param password:
          :return:
          """
          self.update(password_hash=self.encrypt_password(password),
                      require_password_change=False)
  
          # Whenever the password is changed, reset the secret key to invalidate
          # any tokens in the wild
          self.reset_secret_key()