added gen_password_hash and check_password functions to auth/__init__

This commit is contained in:
Rodney Ewing
2013-05-23 13:28:03 -07:00
parent 57e8be21bc
commit b194f29fe3
3 changed files with 13 additions and 3 deletions

View File

@@ -53,5 +53,10 @@ def gen_password_hash(raw_pass, extra_salt=None):
return hook_handle("auth_gen_password_hash", raw_pass, extra_salt)
def check_password(raw_pass, stored_hash, extra_salt=None):
return hook_handle("auth_check_password",
raw_pass, stored_hash, extra_salt)
def fake_login_attempt():
return hook_handle("auth_fake_login_attempt")