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.');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user