diff options
Diffstat (limited to 'lib/settingsaction.php')
-rw-r--r-- | lib/settingsaction.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/settingsaction.php b/lib/settingsaction.php index 17d3a2f64..a923a98b2 100644 --- a/lib/settingsaction.php +++ b/lib/settingsaction.php @@ -77,9 +77,7 @@ class SettingsAction extends CurrentUserDesignAction // _all_ our settings are important common_set_returnto($this->selfUrl()); $user = common_current_user(); - if ($user->hasOpenID()) { - common_redirect(common_local_url('openidlogin'), 303); - } else { + if (Event::handle('RedirectToLogin', array($this, $user))) { common_redirect(common_local_url('login'), 303); } } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { |