Merge remote-tracking branch 'origin/datenschutzkonformeRegistrierung' into dev
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/** @var string $title */
|
||||
/** @var string $message */
|
||||
/** @var string $link */
|
||||
/** @var bool $isSuccess */
|
||||
|
||||
$title = $title ?? "Passwort zurücksetzen";
|
||||
$message = $message ?? "Der Bestätigungslink konnte nicht verarbeitet werden.";
|
||||
$link = $link ?? "";
|
||||
$isSuccess = $isSuccess ?? false;
|
||||
?>
|
||||
|
||||
<!--
|
||||
Ansicht: Passwortbestätigung
|
||||
Funktion: Zeigt das Ergebnis der Passwortänderung an.
|
||||
-->
|
||||
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
|
||||
<h1><?php echo htmlspecialchars($title); ?></h1>
|
||||
|
||||
<p class="alert-message <?php echo $isSuccess ? 'is-success' : 'is-error'; ?> confirm-message">
|
||||
<?php echo htmlspecialchars($message); ?>
|
||||
</p>
|
||||
|
||||
<?php echo $link; ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/** @var string $title */
|
||||
/** @var string $message */
|
||||
/** @var string $link */
|
||||
/** @var bool $isSuccess */
|
||||
|
||||
$title = $title ?? "Registrierung";
|
||||
$message = $message ?? "Der Registrierungslink konnte nicht verarbeitet werden.";
|
||||
$link = $link ?? "";
|
||||
$isSuccess = $isSuccess ?? false;
|
||||
?>
|
||||
|
||||
<!--
|
||||
Ansicht: Registrierungsbestätigung
|
||||
Funktion: Zeigt das Ergebnis der Registrierungsbestätigung an.
|
||||
-->
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
|
||||
<h1><?php echo htmlspecialchars($title); ?></h1>
|
||||
|
||||
<p class="alert-message <?php echo $isSuccess ? 'is-success' : 'is-error'; ?> confirm-message">
|
||||
<?php echo htmlspecialchars($message); ?>
|
||||
</p>
|
||||
|
||||
<?php echo $link; ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
+10
-2
@@ -11,8 +11,10 @@ $error = $error ?? null;
|
||||
|
||||
<h1>Bitte anmelden</h1>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<p style="color:red;">
|
||||
<?php include_once "includes/alertMessages.php"; ?>
|
||||
|
||||
<?php if (!empty($error)): ?>
|
||||
<p class="alert-message is-error">
|
||||
<?php echo htmlspecialchars($error); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
@@ -41,6 +43,12 @@ $error = $error ?? null;
|
||||
anmelden
|
||||
</button>
|
||||
|
||||
<div class="register-link">
|
||||
<a href="index.php?pfad=password-forgotten">
|
||||
Passwort vergessen?
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="register-link">
|
||||
<a href="index.php?pfad=register">
|
||||
Noch keinen Account? Jetzt hier registrieren!
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
$error = $error ?? null;
|
||||
$success = $success ?? null;
|
||||
?>
|
||||
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
|
||||
<h1>Passwort vergessen</h1>
|
||||
|
||||
<?php if (!empty($error)): ?>
|
||||
<p class="alert-message is-error">
|
||||
<?php echo htmlspecialchars($error); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($success)): ?>
|
||||
<p class="alert-message is-success">
|
||||
<?php echo $success; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="index.php?pfad=password-forgotten">
|
||||
|
||||
<p class="input-label">E-Mail-Adresse:</p>
|
||||
<input type="email"
|
||||
name="email"
|
||||
class="login-input"
|
||||
placeholder="E-Mail-Adresse"
|
||||
required>
|
||||
|
||||
<p class="input-label">Neues Passwort:</p>
|
||||
<input type="password"
|
||||
name="password"
|
||||
class="login-input"
|
||||
placeholder="Neues Passwort"
|
||||
required>
|
||||
|
||||
<button type="submit"
|
||||
name="passwordForgottenSubmit"
|
||||
class="button">
|
||||
Passwort zurücksetzen
|
||||
</button>
|
||||
|
||||
<div class="register-link">
|
||||
<a href="index.php?pfad=login">
|
||||
Zurück zum Login
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
$error = $error ?? null;
|
||||
$success = $success ?? null;
|
||||
?>
|
||||
|
||||
<!--
|
||||
@@ -12,11 +13,17 @@ $error = $error ?? null;
|
||||
<h1>Jetzt Registrieren!</h1>
|
||||
|
||||
<?php if (!empty($error)): ?>
|
||||
<p class="alert-message is-error" style="color:red;">
|
||||
<p class="alert-message is-error">
|
||||
<?php echo htmlspecialchars($error); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($success)): ?>
|
||||
<p class="alert-message is-success">
|
||||
<?php echo $success; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="index.php?pfad=register">
|
||||
|
||||
<p class="input-label">Email:</p>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Zeigt den Inhalt einer simulierten E-Mail an.
|
||||
* Die Datei wird über einen zufällig erzeugten Token geladen.
|
||||
*/
|
||||
|
||||
$token = basename($_GET["token"] ?? "");
|
||||
$file = __DIR__ . "/../data/mails/" . $token . ".html";
|
||||
|
||||
if (!file_exists($file)) {
|
||||
echo "<p>Datei nicht gefunden.</p>";
|
||||
exit();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<main class="login-page">
|
||||
<div class="login-container">
|
||||
<h1>Simulierte E-Mail</h1>
|
||||
|
||||
<?php include $file; ?>
|
||||
</div>
|
||||
</main>
|
||||
Reference in New Issue
Block a user