X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fopenidlogin.php;h=1b289dbeab3ab8e865be36e190890614685b9677;hb=2abe10b8ea4b5d69fc7f6513bf465541454ca2cf;hp=b066b9aa4ecdb349381d1e0c4fbd38e7aa7b563b;hpb=d0a466bdb76046421fe1274327453afede5ed6a9;p=quix0rs-gnu-social.git diff --git a/actions/openidlogin.php b/actions/openidlogin.php index b066b9aa4e..1b289dbeab 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -37,9 +37,17 @@ class OpenidloginAction extends Action { return; } + $rememberme = $this->boolean('rememberme'); + + common_ensure_session(); + + $_SESSION['openid_rememberme'] = $rememberme; + $result = oid_authenticate($openid_url, 'finishopenidlogin'); + if (is_string($result)) { # error message + unset($_SESSION['openid_rememberme']); $this->show_form($result, $openid_url); } } else { @@ -74,6 +82,9 @@ class OpenidloginAction extends Action { common_input('openid_url', _('OpenID URL'), $openid_url, _('Your OpenID URL')); + common_checkbox('rememberme', _('Remember me'), false, + _('Automatically login in the future; ' . + 'not for shared computers!')); common_submit('submit', _('Login')); common_element_end('form'); common_show_footer();