Fixed login/register and added logout.php

This commit is contained in:
Joey Lai
2017-01-19 13:11:24 +01:00
parent fddeba821d
commit 049dee6381
10 changed files with 250 additions and 332 deletions

View File

@@ -52,7 +52,7 @@ function registerAccount() {
:email
)");
$hash=password_hash($_POST["password"].(strtolower($_POST["username"])), PASSWORD_DEFAULT);
$hash=password_hash($_POST["password"], PASSWORD_DEFAULT);
$stmt->bindParam(":fname", $_POST["name"]);
$stmt->bindParam(":lname", $_POST["surname"]);