} if (isset($_POST["nonce"])) { $nonce = $_POST["nonce"]; } if (isset($_POST["date"])) { $date = $_POST["date"]; } if (isset($_POST["password1"])) { $password1 = $_POST["password1"]; } if (isset($_POST["password2"])) { $password2 = $_POST["password2"]; } if ($password1 == $password2 && !empty($password1) && !empty($password2)) { $db = new \creamy\DbHandler(); if ($db->checkEmailSecurityCode($email, $date, $nonce, $code)) { if ($db->changePasswordForUserIdentifiedByEmail($email, $password1)) { $result = $lh->translationFor("password_reset_successfully"); $success = true; } else { $result = $lh->translationFor("password_reset_error"); } } } else { $error = $lh->translationFor("passwords_dont_match"); } } ?> <html class="lockscreen"> <head> <meta charset="UTF-8">