summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2009-12-15 10:54:30 +0100
committerAdrian Lang <lang@cosmocode.de>2010-01-19 16:30:22 +0100
commitb5ee21aa65a2f380e3b99ff5ea6ced48c1cb720e (patch)
treed53b88c344a595adb65f58dcaf4d220d95c7b87e /inc/auth.php
parentfbb7e354f4aff3e38f01b228b843aa3ae91754ed (diff)
downloadrpg-b5ee21aa65a2f380e3b99ff5ea6ced48c1cb720e.tar.gz
rpg-b5ee21aa65a2f380e3b99ff5ea6ced48c1cb720e.tar.bz2
Provide AFTER event for AUTH_LOGIN_CHECK
Ignore-this: 804d0837b9a04e4f82e6b54765f453cf darcs-hash:20091215095430-e4919-19c61854c27fdade90caeed035445ee3396b0095.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php15
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
*