summaryrefslogtreecommitdiff
path: root/plugins/CasAuthentication/CasAuthenticationPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-04 10:55:21 -1000
committerEvan Prodromou <evan@status.net>2010-01-04 10:55:21 -1000
commit6add2693b009a2122883f4f6c96c775be878e42c (patch)
treeea6f11e37e44f61216cf9d3f678d2d99a72fc30c /plugins/CasAuthentication/CasAuthenticationPlugin.php
parent96480aa6c1abda95db272f7c0a2b0e96f17acc70 (diff)
parentf5b8177bc752c29228ee76bc95285cdbb8549748 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/CasAuthentication/CasAuthenticationPlugin.php')
-rw-r--r--plugins/CasAuthentication/CasAuthenticationPlugin.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/CasAuthentication/CasAuthenticationPlugin.php b/plugins/CasAuthentication/CasAuthenticationPlugin.php
index 8b6ef5462..8f29c7d2a 100644
--- a/plugins/CasAuthentication/CasAuthenticationPlugin.php
+++ b/plugins/CasAuthentication/CasAuthenticationPlugin.php
@@ -40,6 +40,7 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
public $server;
public $port = 443;
public $path = '';
+ public $takeOverLogin = false;
function checkPassword($username, $password)
{
@@ -62,6 +63,14 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
}
}
+ function onArgsInitialize(&$args)
+ {
+ if($this->takeOverLogin && $args['action'] == 'login')
+ {
+ $args['action'] = 'caslogin';
+ }
+ }
+
function onStartInitializeRouter($m)
{
$m->connect('main/cas', array('action' => 'caslogin'));