mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
force login to ssl on SSL_POLICY_SELFSIGN
This commit is contained in:
parent
110e8f2919
commit
93a8907f43
3 changed files with 13 additions and 9 deletions
4
boot.php
4
boot.php
|
@ -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,8 +716,11 @@ function login($register = false, $hiddens=false) {
|
|||
|
||||
}
|
||||
|
||||
$dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
|
||||
|
||||
$o .= replace_macros($tpl,array(
|
||||
|
||||
'$dest_url' => $dest_url,
|
||||
'$logout' => t('Logout'),
|
||||
'$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" />
|
||||
|
||||
<div id="login_standard">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<form action="" method="post" >
|
||||
<form action="$dest_url" method="post" >
|
||||
<div class="logout-wrapper">
|
||||
<input type="hidden" name="auth-params" value="logout" />
|
||||
<input type="submit" name="submit" id="logout-button" value="$logout" />
|
||||
|
|
Loading…
Reference in a new issue