Permalink
Browse files

better auth

  • Loading branch information...
1 parent c24779a commit 5347cdfdce21dbde53ac49570222762af8f06bd4 @andreiashu andreiashu committed Mar 18, 2012
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");
}

0 comments on commit 5347cdf

Please sign in to comment.