mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-08 19:33:12 +00:00
Fixed password reset bug
Added logs for password resets Added checks to sanity
This commit is contained in:
parent
2d7d359cde
commit
60f0877a5c
10 changed files with 153 additions and 117 deletions
|
@ -26,8 +26,8 @@
|
|||
<p>After reset, you will be kicked out to login again</p>
|
||||
<br>
|
||||
<form id="passwordForm" method="POST" enctype="multipart/form-data">
|
||||
<input id="currentPassword" class="btn btn-neutral" placeholder="Current password!!!!" type='password' disabled>
|
||||
<br>
|
||||
<!--<input id="currentPassword" class="btn btn-neutral" placeholder="Current password!!!!" type='password'>
|
||||
<br>-->
|
||||
<input id="newPassword" class="btn btn-neutral" type="password" name="new_password" placeholder="New Password">
|
||||
<input id="confirmPassword" class="btn btn-neutral" type="password" name="confirm_password" placeholder="Confirm Password">
|
||||
<br>
|
||||
|
@ -40,13 +40,13 @@
|
|||
<script>
|
||||
$("#passwordForm").submit(function(event) {
|
||||
event.preventDefault();
|
||||
var current_password = $("#currentPassword").val();
|
||||
//var current_password = $("#currentPassword").val();
|
||||
var new_password = $("#newPassword").val();
|
||||
var confirm_password = $("#confirmPassword").val();
|
||||
var submit = $("#passwordSubmit").val();
|
||||
|
||||
$("#newSniff").load("app/account/account.php", {
|
||||
current_password: current_password,
|
||||
//current_password: current_password,
|
||||
new_password: new_password,
|
||||
confirm_password: confirm_password,
|
||||
password_reset_submit: submit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue