summaryrefslogtreecommitdiff
path: root/plugins/CasAuthentication/CasAuthenticationPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CasAuthentication/CasAuthenticationPlugin.php')
-rw-r--r--plugins/CasAuthentication/CasAuthenticationPlugin.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/CasAuthentication/CasAuthenticationPlugin.php b/plugins/CasAuthentication/CasAuthenticationPlugin.php
index 428aafb02..818a11f77 100644
--- a/plugins/CasAuthentication/CasAuthenticationPlugin.php
+++ b/plugins/CasAuthentication/CasAuthenticationPlugin.php
@@ -39,6 +39,7 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
public $server;
public $port = 443;
public $path = '';
+ public $takeOverLogin = false;
function checkPassword($username, $password)
{
@@ -56,8 +57,14 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
case 'CasloginAction':
require_once(INSTALLDIR.'/plugins/CasAuthentication/' . strtolower(mb_substr($cls, 0, -6)) . '.php');
return false;
- default:
- return parent::onAutoload($cls);
+ }
+ }
+
+ function onArgsInitialize(&$args)
+ {
+ if($this->takeOverLogin && $args['action'] == 'login')
+ {
+ $args['action'] = 'caslogin';
}
}