add a check for authentication plugin on startup and respond according to no_auth config option. allows instance to be run w/o authentication

This commit is contained in:
Rodney Ewing
2013-05-14 16:14:19 -07:00
parent b56b6b1e77
commit 744f1c83b9
9 changed files with 70 additions and 19 deletions

View File

@@ -81,8 +81,13 @@ def get_registration_form(request):
return auth_forms.RegistrationForm(request.form)
def auth():
return True
hooks = {
'setup': setup_plugin,
'auth': auth,
'auth_check_login': check_login,
'auth_get_user': get_user,
'auth_create_user': create_user,