Weitere Reviewänderungen
This commit is contained in:
+42
-30
@@ -1,55 +1,67 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once 'php/controller/login-controller.php';
|
include_once 'php/controller/profile-controller.php';
|
||||||
|
|
||||||
$error = $error ?? null;
|
$user = $user ?? null;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Form: Login-Bereich
|
Content: Profil
|
||||||
Funktion: Benutzerauthentifizierung und Zugang zum eigenen Profil, Erstellen von Beiträgen, etc.
|
Inhalt: Das eigene Profil, wenn man angemeldet ist.
|
||||||
|
Dort hat man die Möglichkeit seine Angaben zu sehen
|
||||||
|
und später zu bearbeiten.
|
||||||
-->
|
-->
|
||||||
<main class="login-page">
|
|
||||||
<div class="login-container">
|
|
||||||
|
|
||||||
<h1>Bitte anmelden</h1>
|
<main class="form-page">
|
||||||
|
|
||||||
<?php if ($error): ?>
|
<div class="form-container">
|
||||||
<p style="color:red;">
|
|
||||||
<?php echo htmlspecialchars($error); ?>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<form method="post" action="index.php?pfad=login">
|
<h1>Mein Profil</h1>
|
||||||
|
|
||||||
<p class="input-label">Benutzername/E-Mail-Adresse:</p>
|
<form method="post" action="index.php?pfad=profile">
|
||||||
|
|
||||||
|
<label class="input-label">Name</label>
|
||||||
|
<input type="text"
|
||||||
|
name="username"
|
||||||
|
class="login-input"
|
||||||
|
required
|
||||||
|
placeholder="Name"
|
||||||
|
value="<?php echo htmlspecialchars($user["username"] ?? ""); ?>">
|
||||||
|
|
||||||
|
<label class="input-label">Email-Adresse</label>
|
||||||
<input type="email"
|
<input type="email"
|
||||||
name="email"
|
name="email"
|
||||||
class="login-input"
|
class="login-input"
|
||||||
placeholder="E-Mail-Adresse"
|
|
||||||
required
|
required
|
||||||
autofocus>
|
placeholder="mustermann@web.de"
|
||||||
|
value="<?php echo htmlspecialchars($user["email"] ?? ""); ?>">
|
||||||
|
|
||||||
<p class="input-label">Passwort:</p>
|
<label class="input-label">Passwort</label>
|
||||||
<input type="password"
|
<input type="password"
|
||||||
name="password"
|
name="password"
|
||||||
class="login-input"
|
class="login-input"
|
||||||
placeholder="Passwort"
|
value="12345678"
|
||||||
required>
|
readonly>
|
||||||
|
|
||||||
<button type="submit"
|
<br>
|
||||||
value="anmelden"
|
|
||||||
name="loginSubmit"
|
<button type="submit" class="login-button">
|
||||||
class="login-button">
|
Speichern
|
||||||
anmelden
|
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="register-link">
|
|
||||||
<a href="index.php?pfad=register">
|
|
||||||
Noch keinen Account? Jetzt hier registrieren!
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<a href="index.php?pfad=deleteAccount" class="login-button">
|
||||||
|
Account löschen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
<a href="index.php?pfad=logout" class="login-button">
|
||||||
|
Abmelden
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
Reference in New Issue
Block a user