Skip to content

Commit

Permalink
Documentation fix
Browse files Browse the repository at this point in the history
Fixes #78
  • Loading branch information
miguelgrinberg authored Jan 1, 2019
1 parent ce5e5b4 commit c38c523
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 @@ -44,7 +44,7 @@ If the passwords are stored hashed in the user database then an additional callb

@auth.hash_password
def hash_pw(password):
return md5(password).hexdigest()
return md5(password.encode('utf-8')).hexdigest()

When the ``hash_password`` callback is provided access will be granted when ``get_password(username) == hash_password(password)``.

Expand Down

0 comments on commit c38c523

Please sign in to comment.