diff options
Diffstat (limited to 'mediagoblin/auth/__init__.py')
-rw-r--r-- | mediagoblin/auth/__init__.py | 5 |
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") |