This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
include "../api/utils/security.php";
|
||||
secure_session_start();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="dark">
|
||||
@@ -134,12 +135,8 @@ session_start();
|
||||
showModalMessage('Success', 'Registration successful!');
|
||||
// Redirect to a different page if needed after closing the modal
|
||||
setTimeout(() => {
|
||||
<?php
|
||||
if(empty($_SESSION["end_url"]))
|
||||
echo("window.location.href = '/?send_to=/account/';");
|
||||
else
|
||||
echo("window.location.href = '/?send_to=".$_SESSION["end_url"]."';");
|
||||
?>
|
||||
const endUrl = <?php echo json_encode($_SESSION["end_url"] ?? "/account/"); ?>;
|
||||
window.location.href = '/?send_to=' + encodeURIComponent(endUrl);
|
||||
}, 2000);
|
||||
} else {
|
||||
showModalMessage('Error', result.message || 'Registration failed!');
|
||||
|
||||
Reference in New Issue
Block a user