diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-10 11:53:35 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-10 11:53:35 -0400 |
commit | e9ed20a69d8f646bc85151c1e890f5828a966fcf (patch) | |
tree | e72bdf25cc94c630c31863d2985b1f29b4b27414 /actions/login.php | |
parent | 17dcf1c3170bc905e3b0fdffc804d6f7229ac61b (diff) | |
parent | 14b46e2183f10359cc53d597913a878f53e23719 (diff) |
Merge commit 'jeff-themovie/0.8.x-openidonly' into 0.8.x
Diffstat (limited to 'actions/login.php')
-rw-r--r-- | actions/login.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php index 50de83f6f..c20854f15 100644 --- a/actions/login.php +++ b/actions/login.php @@ -65,6 +65,8 @@ class LoginAction extends Action * * Switches on request method; either shows the form or handles its input. * + * Checks if only OpenID is allowed and redirects to openidlogin if so. + * * @param array $args $_REQUEST data * * @return void @@ -73,7 +75,9 @@ class LoginAction extends Action function handle($args) { parent::handle($args); - if (common_is_real_login()) { + if (common_config('site', 'openidonly')) { + common_redirect(common_local_url('openidlogin')); + } else if (common_is_real_login()) { $this->clientError(_('Already logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->checkLogin(); |