Charakterverwalter (westreiche_website) ergänzen, Website-Nav "Charaktere"
This commit is contained in:
parent
d107f90c93
commit
01dae01c7c
84 changed files with 8915 additions and 17 deletions
48
westreiche_website/views/invite.php
Normal file
48
westreiche_website/views/invite.php
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/** @var array|null $invite */
|
||||
/** @var string $error */
|
||||
/** @var string $token */
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#0a0d16">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title>Einladung · Westreiche</title>
|
||||
<link rel="icon" href="<?= e(asset('crest.svg')) ?>" type="image/svg+xml">
|
||||
<link rel="stylesheet" href="<?= e(asset('app.css')) ?>">
|
||||
<script src="<?= e(asset('app.js')) ?>" defer></script>
|
||||
</head>
|
||||
<body class="auth-shell">
|
||||
<div class="auth-stars" aria-hidden="true"></div>
|
||||
<main class="auth-card">
|
||||
<p class="brand-kicker">Westreiche</p>
|
||||
<h1>Einladung</h1>
|
||||
|
||||
<?php if ($error !== ''): ?>
|
||||
<p class="alert alert-error"><?= e($error) ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($invite === null): ?>
|
||||
<p>Dieser Einladungslink ist ungültig oder abgelaufen. Bitte den Spielleiter um einen neuen Link.</p>
|
||||
<p><a class="btn" href="<?= e(url('/login')) ?>">Zur Anmeldung</a></p>
|
||||
<?php else: ?>
|
||||
<p>Willkommen, <strong><?= e((string) $invite['username']) ?></strong>. Vergib jetzt dein Passwort – danach ist der Link verbraucht.</p>
|
||||
<form method="post" action="<?= e(url('/invite/' . $token)) ?>" class="form-grid">
|
||||
<?= csrf_field() ?>
|
||||
<label class="field">
|
||||
<span>Passwort (mindestens 8 Zeichen)</span>
|
||||
<input type="password" name="password" required minlength="8" autocomplete="new-password" autofocus>
|
||||
</label>
|
||||
<label class="field">
|
||||
<span>Passwort wiederholen</span>
|
||||
<input type="password" name="password_repeat" required minlength="8" autocomplete="new-password">
|
||||
</label>
|
||||
<button class="btn btn-primary" type="submit">Beitreten</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue