Added the instructions on setting the password hash in README.rst.
This commit is contained in:
parent
a43c6aea89
commit
2156aa710f
18
README.rst
18
README.rst
@ -232,6 +232,24 @@ authentication mechanism. You can change the actual authentication
|
||||
mechanism without changing the views.
|
||||
|
||||
|
||||
Setting the Password Hash
|
||||
=========================
|
||||
|
||||
The password hash of the HTTP Digest Authentication is composed of the
|
||||
realm, the username, and the password. Example for setting the
|
||||
password:
|
||||
|
||||
::
|
||||
|
||||
from flask_digest_auth import make_password_hash
|
||||
|
||||
user.password = make_password_hash(realm, username, password)
|
||||
|
||||
The username is part of the hash. If the user changes their username,
|
||||
you need to ask their password, to generate and store the new password
|
||||
hash.
|
||||
|
||||
|
||||
Writing Tests
|
||||
=============
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user