diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-08-21 15:42:11 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-08-21 15:42:11 -0400 |
commit | b2664e1ae2e2cf66585cdd8696d88efdd053eb3b (patch) | |
tree | 3e406bc5502c0937f2cf81e0b4a6a1b714a1b403 /actions/openidlogin.php | |
parent | c78772b2748f70acc8158b665218fe53b277a031 (diff) | |
parent | 9f07921b45190b462e1a798622068e24ef31e124 (diff) |
Merge branch '0.8.x' into 0.9.x
Conflicts:
actions/updateprofile.php
actions/userauthorization.php
classes/User_group.php
index.php
install.php
lib/accountsettingsaction.php
lib/logingroupnav.php
Diffstat (limited to 'actions/openidlogin.php')
-rw-r--r-- | actions/openidlogin.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/openidlogin.php b/actions/openidlogin.php index a8d052096..744aae713 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -26,7 +26,9 @@ class OpenidloginAction extends Action function handle($args) { parent::handle($args); - if (common_is_real_login()) { + if (!common_config('openid', 'enabled')) { + common_redirect(common_local_url('login')); + } else if (common_is_real_login()) { $this->clientError(_('Already logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $openid_url = $this->trimmed('openid_url'); |