indenting

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
Rob Gill
2018-05-15 09:03:09 +10:00
committed by GitHub
parent 7a3fc169a5
commit 72e95cec96

View File

@@ -29,7 +29,7 @@
{
session_unset();
setcookie('persistentlogin', '');
header('Location: index.php');
header('Location: index.php');
exit();
}
@@ -43,16 +43,16 @@
if (isset($_COOKIE["persistentlogin"]))
{
if ($pwhash = $_COOKIE["persistentlogin"])
{ $auth = true;
{ $auth = true;
// Refresh cookie with new expiry
setcookie('persistentlogin', $pwhash, time()+60*60*24*7);
}
else
{
// Invalid cookie
$auth = false;
setcookie('persistentlogin', '');
}
}
else
{
// Invalid cookie
$auth = false;
setcookie('persistentlogin', '');
}
}
// Compare doubly hashes password input with saved hash
else if(isset($_POST["pw"]))