diff --git a/login.php b/login.php index 0ffc495..829b0cb 100644 --- a/login.php +++ b/login.php @@ -9,6 +9,7 @@ require_once 'core/config.php'; $getitstarted = new PartyStarter; $getitstarted->buildloggedoutheader(); $passwordiswrong = false; +$user = new User($con, 0); if(isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['pass']; diff --git a/register.php b/register.php index 734b6f8..cae93a3 100644 --- a/register.php +++ b/register.php @@ -10,6 +10,7 @@ $getitstarted = new PartyStarter; $getitstarted->buildloggedoutheader(); $passwordconfirmiswrong = false; $passwordistooshort = false; +$user = new User($con, 0); $userexists = false; if(isset($_POST['submit'])) { $username = $_POST['username'];