User

class aioaccount.User(upper: AccountHandler, user_id: str)
await delete() None

Used to delete account, this can’t be undone.

await get() aioaccount._models.UserModel

Used to get details on user.

Returns

Return type

UserModel

Raises

UserIdError

await password_confirm(new_password: str, given_code: str) None

Used to reset password from password reset code.

Parameters
  • new_password (str) –

  • given_code (str) –

Raises
await reset_password() str

Used to reset a password

Returns

The password reset code, if SMTP is being used you shouldn’t need to touch this.

Return type

str

await update_email(new_email: str) None

Used to update a user’s email.

Parameters

new_email (str) –

Raises
await update_name(name: str) None

Updates users name

Parameters

name (str) –

Raises
await update_password(current_password: str, new_password: str) None
Used to update the password if they already know

there current password.

Parameters
  • current_password (str) –

  • new_password (str) –

Raises