forked from Adleraci/adlerka.top
debug print
This commit is contained in:
parent
2213f97f37
commit
8073d6c29e
@ -88,8 +88,6 @@ function verifyPassword($userID, $password): bool
|
|||||||
|
|
||||||
function doLogin($email, $password): array
|
function doLogin($email, $password): array
|
||||||
{
|
{
|
||||||
echo $email;
|
|
||||||
echo $password;
|
|
||||||
global $mysqli, $routerConfig;
|
global $mysqli, $routerConfig;
|
||||||
$found = false;
|
$found = false;
|
||||||
if (!empty($email) && !empty($password)) {
|
if (!empty($email) && !empty($password)) {
|
||||||
@ -109,6 +107,7 @@ function doLogin($email, $password): array
|
|||||||
$stmt->bind_result($uid, $first_name, $last_name, $nickname, $password_hash, $minecraft_nickname, $privilege_level, $lastLoginAt, $loginCount);
|
$stmt->bind_result($uid, $first_name, $last_name, $nickname, $password_hash, $minecraft_nickname, $privilege_level, $lastLoginAt, $loginCount);
|
||||||
|
|
||||||
if ($stmt->num_rows() > 0) {
|
if ($stmt->num_rows() > 0) {
|
||||||
|
echo "user found";
|
||||||
$stmt->fetch();
|
$stmt->fetch();
|
||||||
if (password_verify($password, $password_hash)) {
|
if (password_verify($password, $password_hash)) {
|
||||||
$found = true;
|
$found = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user