Add custom login page

This commit is contained in:
DL6ER
2016-12-08 16:39:44 +01:00
parent 2f03c5491c
commit 9c7dc19d80
3 changed files with 27 additions and 8 deletions
+6
View File
@@ -20,6 +20,8 @@
session_unset();
}
$wrongpassword = false;
// Test if password is set
if(strlen($pwhash) > 0)
{
@@ -32,6 +34,10 @@
$_SESSION["hash"] = $pwhash;
$auth = true;
}
else
{
$wrongpassword = true;
}
}
// Compare auth hash with saved hash
else if (isset($_SESSION["hash"]))