Skip to content
Snippets Groups Projects
Commit b5ee21aa authored by Adrian Lang's avatar Adrian Lang
Browse files

Provide AFTER event for AUTH_LOGIN_CHECK

Ignore-this: 804d0837b9a04e4f82e6b54765f453cf

darcs-hash:20091215095430-e4919-19c61854c27fdade90caeed035445ee3396b0095.gz
parent fbb7e354
No related branches found
No related tags found
No related merge requests found
......@@ -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
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment