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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user