Skip to content

Commit

Permalink
fix docs for update_password (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend authored Jul 12, 2024
1 parent bd759a6 commit e7b13fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/piccolo/authentication/baseuser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ To change a user's password:
.. code-block:: python
# From within a coroutine:
await BaseUser.update_password(username="bob", password="abc123")
await BaseUser.update_password(user="bob", password="abc123")
# When not in an event loop:
BaseUser.update_password_sync(username="bob", password="abc123")
BaseUser.update_password_sync(user="bob", password="abc123")
.. warning:: Don't use bulk updates for passwords - use ``update_password`` /
``update_password_sync``, and they'll correctly hash the password.
Expand Down

0 comments on commit e7b13fb

Please sign in to comment.