fix: redirect_back duplication

This commit is contained in:
Floorb 2023-07-11 03:34:28 -04:00
parent 239f1f92fe
commit 563d8f6738

View file

@ -24,6 +24,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (isset($_SESSION['redirect_back'])) {
flashSuccess('You have been logged in. Please try your action again.');
header('Location: ' . $_SESSION['redirect_back']);
unset($_SESSION['redirect_back']);
} else {
header("Location: dashboard.php");
}