aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-05-23 13:28:03 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-05-24 16:52:50 -0700
commitb194f29fe3f295b2426fb0ef4809fee6e74c17e7 (patch)
tree5df90a8769ce86161172e2e82021569219f40df1 /mediagoblin/auth
parent57e8be21bcd832a36fbc8feac03dba941ef4d370 (diff)
downloadmediagoblin-b194f29fe3f295b2426fb0ef4809fee6e74c17e7.tar.lz
mediagoblin-b194f29fe3f295b2426fb0ef4809fee6e74c17e7.tar.xz
mediagoblin-b194f29fe3f295b2426fb0ef4809fee6e74c17e7.zip
added gen_password_hash and check_password functions to auth/__init__
Diffstat (limited to 'mediagoblin/auth')
-rw-r--r--mediagoblin/auth/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mediagoblin/auth/__init__.py b/mediagoblin/auth/__init__.py
index 3966ecd3..53182eaa 100644
--- a/mediagoblin/auth/__init__.py
+++ b/mediagoblin/auth/__init__.py
@@ -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")