fix rebase issues with reverse proxy
This commit is contained in:
@@ -3,7 +3,7 @@ session_start();
|
||||
|
||||
if ($_REQUEST['action'] == 'logout') {
|
||||
session_destroy();
|
||||
header('Location: /index.php');
|
||||
header('Location: index.php');
|
||||
}
|
||||
// ###################################
|
||||
// ## Login settings locale start
|
||||
@@ -40,7 +40,7 @@ $Pia_WebProtection = strtolower(trim($protection_line[1]));
|
||||
|
||||
if ($Pia_WebProtection == 'false')
|
||||
{
|
||||
header('Location: /devices.php');
|
||||
header('Location: devices.php');
|
||||
$_SESSION["login"] = 1;
|
||||
exit;
|
||||
}
|
||||
@@ -55,13 +55,13 @@ $Pia_Password = $password_line[1];
|
||||
|
||||
if ($Pia_Password == hash('sha256',$_POST["loginpassword"]))
|
||||
{
|
||||
header('Location: /devices.php');
|
||||
header('Location: devices.php');
|
||||
$_SESSION["login"] = 1;
|
||||
}
|
||||
|
||||
if ($_SESSION["login"] == 1)
|
||||
{
|
||||
header('Location: /devices.php');
|
||||
header('Location: devices.php');
|
||||
}
|
||||
|
||||
if ($_SESSION["login"] != 1)
|
||||
@@ -123,7 +123,7 @@ if ($ENABLED_DARKMODE === True) {
|
||||
<!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg"><?php echo $pia_lang['Login_Box'];?></p>
|
||||
<form action="/index.php" method="post">
|
||||
<form action="index.php" method="post">
|
||||
<div class="form-group has-feedback">
|
||||
<input type="password" class="form-control" placeholder="<?php echo $pia_lang['Login_Psw-box'];?>" name="loginpassword">
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
|
||||
Reference in New Issue
Block a user