Revert "removed warning"

This commit is contained in:
Johnny 2023-01-08 14:00:16 -05:00 committed by GitHub
parent dc27504a46
commit b91ead19ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -55,10 +55,7 @@ if(isset($_POST['login'])){
}
$row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM users LEFT JOIN user_settings on users.user_id = user_settings.user_id WHERE user_email = '$email' AND user_archived_at IS NULL"));
if ($row) {
if (password_verify($password, $row['user_password']))
if (password_verify($password, $row['user_password'])) {
// User variables
$token = $row['user_token'];