diff options
author | friendica <info@friendica.com> | 2012-03-14 21:29:44 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-14 21:29:44 -0700 |
commit | 93a8907f435e1b6ca55fa816ffb81b47a018db03 (patch) | |
tree | c915ac93219961a889c1d04e8df8352193629988 /boot.php | |
parent | 110e8f29197e0824d555b82c05c31f36b87ab7ae (diff) | |
download | volse-hubzilla-93a8907f435e1b6ca55fa816ffb81b47a018db03.tar.gz volse-hubzilla-93a8907f435e1b6ca55fa816ffb81b47a018db03.tar.bz2 volse-hubzilla-93a8907f435e1b6ca55fa816ffb81b47a018db03.zip |
force login to ssl on SSL_POLICY_SELFSIGN
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -696,6 +696,7 @@ function get_guid($size=16) { if(! function_exists('login')) { function login($register = false, $hiddens=false) { + $a = get_app(); $o = ""; $reg = false; if ($register) { @@ -715,23 +716,26 @@ function login($register = false, $hiddens=false) { } + $dest_url = $a->get_baseurl(true) . '/' . $a->query_string; $o .= replace_macros($tpl,array( - '$logout' => t('Logout'), - '$login' => t('Login'), + + '$dest_url' => $dest_url, + '$logout' => t('Logout'), + '$login' => t('Login'), '$lname' => array('username', t('Nickname or Email address: ') , '', ''), '$lpassword' => array('password', t('Password: '), '', ''), '$openid' => !$noid, - '$lopenid' => array('openid_url', t('Or login using OpenID: '),'',''), + '$lopenid' => array('openid_url', t('Or login using OpenID: '),'',''), - '$hiddens' => $hiddens, + '$hiddens' => $hiddens, - '$register' => $reg, + '$register' => $reg, - '$lostpass' => t('Forgot your password?'), - '$lostlink' => t('Password Reset'), + '$lostpass' => t('Forgot your password?'), + '$lostlink' => t('Password Reset'), )); call_hooks('login_hook',$o); |