mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-09 20:03:11 +00:00
Rewriting classes for de-oopsie-ing
This commit is contained in:
parent
7f1782d7c6
commit
646b41e90a
7 changed files with 42 additions and 20 deletions
|
@ -6,7 +6,7 @@
|
|||
$user_info = new Account();
|
||||
|
||||
// Check if the user is logged in, otherwise redirect to login page
|
||||
if ($user_info->is_loggedin() != true) {
|
||||
if ($user_info->is_loggedin($conn) == false) {
|
||||
header("location: account.php");
|
||||
}
|
||||
?>
|
||||
|
@ -26,6 +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="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>
|
||||
|
@ -38,11 +40,13 @@
|
|||
<script>
|
||||
$("#passwordForm").submit(function(event) {
|
||||
event.preventDefault();
|
||||
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,
|
||||
new_password: new_password,
|
||||
confirm_password: confirm_password,
|
||||
password_reset_submit: submit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue