From b194f29fe3f295b2426fb0ef4809fee6e74c17e7 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Thu, 23 May 2013 13:28:03 -0700 Subject: added gen_password_hash and check_password functions to auth/__init__ --- mediagoblin/auth/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mediagoblin/auth') 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") -- cgit v1.2.3