Skip to content

Commit

Permalink
index.rst: Add a missing variable in a code snippet (#49)
Browse files Browse the repository at this point in the history
The `salt` variable should be set for the snippet to work (provided that `get_salt` exists).
  • Loading branch information
bfontaine authored and miguelgrinberg committed Dec 14, 2016
1 parent 1f0b36f commit f7fe976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ If the hashing algorithm requires the username to be known then the callback can

@auth.hash_password
def hash_pw(username, password):
get_salt(username)
salt = get_salt(username)
return hash(password, salt)

For the most degree of flexibility the `get_password` and `hash_password` callbacks can be replaced with `verify_password`::
Expand Down

0 comments on commit f7fe976

Please sign in to comment.