feat: Leite eingeloggte Benutzer von Login-Seite zur Rangliste um
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
a1365026d5
commit
3840f89555
1 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,12 @@ if (($uri === '/' || $uri === '/index.php') && $page === null) {
|
|||
|
||||
// Routing basierend auf Query-Parametern
|
||||
if ($page === 'login') {
|
||||
// Wenn bereits eingeloggt, zur Rangliste weiterleiten
|
||||
if (Auth::check()) {
|
||||
header('Location: /index.php?page=ranking');
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$email = $_POST['email'] ?? '';
|
||||
$password = $_POST['password'] ?? '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue