From c38c52326b78c91d4410f347abcd8bc49cc63ca4 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 1 Jan 2019 09:57:10 +0000 Subject: [PATCH] Documentation fix Fixes #78 --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 28d1ae3..84f3c9b 100755 --- a/docs/index.rst +++ b/docs/index.rst @@ -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)``.