diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-02-05 20:02:47 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-02-05 20:02:47 +0000 |
commit | 986abdd968ea6a72df0329038288e31c76403b0b (patch) | |
tree | 68e7008334be6b85ad9813c26838994ccb2296ea /actions/openidlogin.php | |
parent | 96ca4ef75ae47228031ab4ba17b3340735342363 (diff) | |
parent | 9febe8ce394d8428355ac73f1c0f6a9555252bd2 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/openidlogin.php')
-rw-r--r-- | actions/openidlogin.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/actions/openidlogin.php b/actions/openidlogin.php index 7a267a2bd..1a4372d73 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -26,7 +26,7 @@ class OpenidloginAction extends Action function handle($args) { parent::handle($args); - if (common_logged_in()) { + if (common_is_real_login()) { $this->clientError(_('Already logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $openid_url = $this->trimmed('openid_url'); @@ -59,7 +59,16 @@ class OpenidloginAction extends Action function getInstructions() { - return _('Login with an [OpenID](%%doc.openid%%) account.'); + if (common_logged_in() && !common_is_real_login() && + common_get_returnto()) { + // rememberme logins have to reauthenticate before + // changing any profile settings (cookie-stealing protection) + return _('For security reasons, please re-login with your ' . + '[OpenID](%%doc.openid%%) ' . + 'before changing your settings.'); + } else { + return _('Login with an [OpenID](%%doc.openid%%) account.'); + } } function showPageNotice() |