renamed hook as to no conflict with existing hook names

This commit is contained in:
Rodney Ewing 2013-05-15 13:24:43 -07:00
parent 5b6923ab84
commit f65615eaf9
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ def normalize_user_or_email_field(allow_email=True, allow_user=True):
def check_auth_enabled():
no_auth = mg_globals.app_config['no_auth']
auth_plugin = True if hook_handle('auth') is not None else False
auth_plugin = True if hook_handle('authentication') is not None else False
if no_auth == 'false' and not auth_plugin:
print 'No authentication plugin is enabled and no_auth = false in ' \

View File

@ -94,7 +94,7 @@ def auth():
hooks = {
'setup': setup_plugin,
'auth': auth,
'authentication': auth,
'auth_check_login': check_login,
'auth_get_user': get_user,
'auth_create_user': create_user,