<?php
include "../classes/db.class.php";
$db = new db();
if ($db->query("UPDATE users SET `password` = '" . hash("sha256", $_POST['password_1']) . "' WHERE email = '{$_POST['email']}'")) {
    echo 1;
} else {
    echo 0;
}
