force login to ssl on SSL_POLICY_SELFSIGN
This commit is contained in:
parent
110e8f2919
commit
93a8907f43
4
boot.php
4
boot.php
|
@ -696,6 +696,7 @@ function get_guid($size=16) {
|
||||||
|
|
||||||
if(! function_exists('login')) {
|
if(! function_exists('login')) {
|
||||||
function login($register = false, $hiddens=false) {
|
function login($register = false, $hiddens=false) {
|
||||||
|
$a = get_app();
|
||||||
$o = "";
|
$o = "";
|
||||||
$reg = false;
|
$reg = false;
|
||||||
if ($register) {
|
if ($register) {
|
||||||
|
@ -715,8 +716,11 @@ function login($register = false, $hiddens=false) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
|
|
||||||
|
'$dest_url' => $dest_url,
|
||||||
'$logout' => t('Logout'),
|
'$logout' => t('Logout'),
|
||||||
'$login' => t('Login'),
|
'$login' => t('Login'),
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
<form action="" method="post" >
|
<form action="$dest_url" method="post" >
|
||||||
<input type="hidden" name="auth-params" value="login" />
|
<input type="hidden" name="auth-params" value="login" />
|
||||||
|
|
||||||
<div id="login_standard">
|
<div id="login_standard">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<form action="" method="post" >
|
<form action="$dest_url" method="post" >
|
||||||
<div class="logout-wrapper">
|
<div class="logout-wrapper">
|
||||||
<input type="hidden" name="auth-params" value="logout" />
|
<input type="hidden" name="auth-params" value="logout" />
|
||||||
<input type="submit" name="submit" id="logout-button" value="$logout" />
|
<input type="submit" name="submit" id="logout-button" value="$logout" />
|
||||||
|
|
Loading…
Reference in a new issue