Move anonymous_user_required to decorators

This commit is contained in:
Matt Wright
2012-09-16 16:05:24 -04:00
parent 8bdd464239
commit 96f2be056d
3 changed files with 19 additions and 5 deletions
+1
View File
@@ -89,6 +89,7 @@ def get_hmac(password):
h = hmac.new(_security.password_salt, password, hashlib.sha512)
return base64.b64encode(h.digest())
def verify_password(password, password_hash):
return _pwd_context.verify(get_hmac(password), password_hash)