generated from jric11/baseProject
a bunch of stuff happened. I'll do better next commit...
This commit is contained in:
@@ -52,11 +52,16 @@ $(document).ready(function () {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
$.post("./", $(this).serialize())
|
||||
$.post("main.php", $(this).serialize())
|
||||
.done(function () {
|
||||
formSubmit({action: "./"});
|
||||
window.location.assign('main.php');
|
||||
})
|
||||
.fail(function (response) {
|
||||
createInputError(user_verify_password, response.status === 422
|
||||
? 'Enter a nonempty password and matching confirmation.'
|
||||
: 'Unable to change your password. Reload the page and try again.');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
+2
-1
@@ -56,6 +56,7 @@ $(document).ready(function () {
|
||||
$(".btnForgot").on("click", function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
$("#reset_user_name").val($("#user_name").val().trim());
|
||||
$("#reset-password").submit();
|
||||
|
||||
});
|
||||
@@ -149,4 +150,4 @@ function createInputError(input, message = "", scroll = false) {
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user