summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-04 13:17:43 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-04 13:17:43 -0400
commit622c0b24c3455557bdb1bee646dcd9c955a3b3ea (patch)
treeefb03f2f7378562cf5e9f367f5c4f27ca9cfacea /lib
parent000e21be1917b190a2aaca2e864bbf79de4796bb (diff)
move redirect-to-openid code to OpenID plugin
Diffstat (limited to 'lib')
-rw-r--r--lib/settingsaction.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/settingsaction.php b/lib/settingsaction.php
index 4cf9b80c4..a923a98b2 100644
--- a/lib/settingsaction.php
+++ b/lib/settingsaction.php
@@ -78,11 +78,7 @@ class SettingsAction extends CurrentUserDesignAction
common_set_returnto($this->selfUrl());
$user = common_current_user();
if (Event::handle('RedirectToLogin', array($this, $user))) {
- if ($user->hasOpenID()) {
- common_redirect(common_local_url('openidlogin'), 303);
- } else {
- common_redirect(common_local_url('login'), 303);
- }
+ common_redirect(common_local_url('login'), 303);
}
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost();