diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/inc/auth.php b/inc/auth.php index 50c5f17ed..c18104487 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -90,13 +90,7 @@ if($conf['useacl']){ 'sticky' => $_REQUEST['r'], 'silent' => $_REQUEST['http_credentials'], ); - $evt = new Doku_Event('AUTH_LOGIN_CHECK',$evdata); - if($evt->advise_before()){ - auth_login($evdata['user'], - $evdata['password'], - $evdata['sticky'], - $evdata['silent']); - } + trigger_event('AUTH_LOGIN_CHECK', $evdata, 'auth_login_wrapper'); } } @@ -114,6 +108,13 @@ if($conf['useacl']){ } } +function auth_login_wrapper($evdata) { + return auth_login($evdata['user'], + $evdata['password'], + $evdata['sticky'], + $evdata['silent']); +} + /** * This tries to login the user based on the sent auth credentials * |