Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better auth

  • Loading branch information...
commit 5347cdfdce21dbde53ac49570222762af8f06bd4 1 parent c24779a
@andreiashu andreiashu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  auth.php
View
2  auth.php
@@ -3,7 +3,7 @@
require_once('config.php');
session_start();
-if ($_POST["username"] != USERNAME && $_POST['password'] != PASSWORD) {
+if (empty($_POST["username"]) || empty($_POST['password']) || $_POST["username"] != USERNAME || $_POST['password'] != PASSWORD) {
header("Location: logon.php");
}
Please sign in to comment.
Something went wrong with that request. Please try again.