moo.sdk.password.set_password

moo.sdk.password.set_password(player_obj, new_password, old_password=None)

Set the Django User password for a MOO player object.

Non-wizard players must supply old_password for identity verification. Wizard players may omit old_password to perform an administrative reset.

Parameters:
  • player_obj – the player Object whose password to change

  • new_password – the new plaintext password to set

  • old_password – the current password (required for non-wizard players)

Raises:

UserError – bad old password, no account, or validation failure