mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-15 22:53:14 +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
|
@ -31,7 +31,7 @@ if (isset($_POST['fix'])) {
|
|||
echo "<p><span style='color: var(--accent);'>[INFO]</span> Autofix complete in $autofix_time ms</p>";
|
||||
}
|
||||
|
||||
if (isset($_POST['check'])) {
|
||||
elseif (isset($_POST['check'])) {
|
||||
if (empty($_SESSION['id'])) {
|
||||
echo "<p><span style='color: var(--warning);'>[ERROR]</span> You are not logged in</p>";
|
||||
exit();
|
||||
|
@ -80,4 +80,8 @@ if (isset($_POST['check'])) {
|
|||
</button>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
echo "<p class='alert alert-warning'><span class='badge badge-warning'>Warning</span> Bruh, what do you want?</p>";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue