feat: Implementiere Login- und Authentifizierungssystem
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
eed4c00645
commit
9baaeafd1c
5 changed files with 193 additions and 4 deletions
|
|
@ -14,4 +14,12 @@
|
|||
<a href="#">Tipps</a>
|
||||
<a href="/index.php?page=ranking">Rangliste</a>
|
||||
<a href="#">Info</a>
|
||||
<div style="margin-left: auto;">
|
||||
<?php if (App\Core\Auth::check()): ?>
|
||||
<span style="margin-right: 1em;">Hallo, <?php echo htmlspecialchars(App\Core\Auth::user()['name']); ?>!</span>
|
||||
<a href="/index.php?page=logout">Logout</a>
|
||||
<?php else: ?>
|
||||
<a href="/index.php?page=login">Login</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue