This commit is contained in:
Michał 2022-09-17 10:28:29 +00:00
parent 42e4de2e3b
commit 7143e35bc7

View file

@ -28,7 +28,7 @@
<br> <br>
<form id="passwordForm" method="POST" enctype="multipart/form-data"> <form id="passwordForm" method="POST" enctype="multipart/form-data">
<input id="newPassword" class="btn btn-neutral" type="password" name="new_password" placeholder="New Password"> <input id="newPassword" class="btn btn-neutral" type="password" name="new_password" placeholder="New Password">
<input id="confirmSassword" class="btn btn-neutral" type="password" name="confirm_password" placeholder="Confirm Password"> <input id="confirmPassword" class="btn btn-neutral" type="password" name="confirm_password" placeholder="Confirm Password">
<br> <br>
<button id="passwordSubmit" class="btn btn-bad" type="submit" name="reset"><img class="svg" src="assets/icons/sign-in.svg">Reset</button> <button id="passwordSubmit" class="btn btn-bad" type="submit" name="reset"><img class="svg" src="assets/icons/sign-in.svg">Reset</button>
</form> </form>
@ -38,7 +38,7 @@
$("#passwordForm").submit(function(event) { $("#passwordForm").submit(function(event) {
event.preventDefault(); event.preventDefault();
var new_passowrd = $("#newPassword").val(); var new_passowrd = $("#newPassword").val();
var confirm_password = $("#confirmSassword").val(); var confirm_password = $("#confirmPassword").val();
var submit = $("#passwordSubmit").val(); var submit = $("#passwordSubmit").val();
$("#sniffle").load("app/account/password_reset.php", { $("#sniffle").load("app/account/password_reset.php", {
new_passowrd: new_passowrd, new_passowrd: new_passowrd,