diff options
author | Robin Gareus <robin@gareus.org> | 2009-03-12 23:44:54 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2009-03-12 23:44:54 +0100 |
commit | 6080c584e81927b2263267822e3ebc1e553662ec (patch) | |
tree | 541b9020a7672c9e93eb39058a721e17b6e3833d /inc/auth.php | |
parent | ce12fb7aa33a12887c79fd368ba35bb8240130df (diff) | |
download | rpg-6080c584e81927b2263267822e3ebc1e553662ec.tar.gz rpg-6080c584e81927b2263267822e3ebc1e553662ec.tar.bz2 |
Action Event wrappers around HTTP requests and authentication checks
Ignore-this: 9ffd0327c318a633e33a60e0a8ecf7f5
darcs-hash:20090312224454-b7b7f-12b7fa78c0b638c1795f6d5e1b1c1aa2cbab64d4.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index e1f9029a9..c3480b725 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -81,7 +81,23 @@ // external trust mechanism in place $auth->trustExternal($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); }else{ - auth_login($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r'],$_REQUEST['http_credentials']); + $evdata = array( + 'action' => $ACT, + 'user' => $_REQUEST['u'], + 'password' => $_REQUEST['p'], + 'sticky' => $_REQUEST['r'], + 'silent' => $_REQUEST['http_credentials'], + ); + $evt = new Doku_Event('AUTH_LOGIN_CHECK',$ACT); + if($evt->advise_before()){ + auth_login($evdata['user'], + $evdata['password'], + $evdata['sticky'], + $evdata['silent']); + } + $evt->advise_after(); + unset($evt); + unset($evdata); } } |