pfp test
This commit is contained in:
parent
34d322e0c0
commit
b1936f4d3a
10 changed files with 322 additions and 25 deletions
|
@ -28,7 +28,7 @@
|
|||
return 'Username is too long or short.';
|
||||
}
|
||||
|
||||
$stmt = $db->prepare("SELECT username FROM auth WHERE UPPER(username) LIKE UPPER(?)");
|
||||
$stmt = $db->prepare("SELECT username FROM main.auth WHERE UPPER(username) LIKE UPPER(?)");
|
||||
$stmt->execute([$user]);
|
||||
|
||||
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
$hashed = password_hash($pass, PASSWORD_DEFAULT);
|
||||
|
||||
$stmt = $db->prepare("INSERT INTO auth (username, password) VALUES (?, ?)");
|
||||
$stmt = $db->prepare("INSERT INTO main.auth (username, password) VALUES (?, ?)");
|
||||
$stmt->execute([$user,$hashed]);
|
||||
|
||||
header("Location: /");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue