- PHP-App unter hub/ für rinkplanner-hub.programmschmiede.de - MariaDB-Schema, Argon2id, Sessions, CSRF und Ratenbegrenzung - Einladungscodes, Admin-Bereich und Kür-Pakete mit Audiodatei - JSON-API v1 mit Bearer-Tokens für die Godot-App - Deployment und Erstinstallation über tools/deploy_hub.sh - Doku und Credentials-Vorlage ergänzt
62 lines
2.7 KiB
PHP
62 lines
2.7 KiB
PHP
<?php /** @var array|null $invite */ ?>
|
||
<?php /** @var string $code */ ?>
|
||
<?php /** @var array $errors */ ?>
|
||
<?php /** @var array $input */ ?>
|
||
<section class="auth-card wide">
|
||
<h1>Beta-Zugang einlösen</h1>
|
||
<p class="muted">Ein Einladungscode legt genau ein Konto an. Der Code verliert danach seine Gültigkeit.</p>
|
||
|
||
<?php if ($errors): ?>
|
||
<div class="flash flash-error">
|
||
<ul class="plain">
|
||
<?php foreach ($errors as $error): ?>
|
||
<li><?= e($error) ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
<?php endif; ?>
|
||
|
||
<form method="post" action="<?= e(url('/register')) ?>" class="stack">
|
||
<?= csrf_field() ?>
|
||
<label>
|
||
Einladungscode
|
||
<input type="text" name="code" value="<?= e_attr($code) ?>" placeholder="RHUB-XXXX-XXXX-XXXX-XXXX" required>
|
||
</label>
|
||
<div class="grid-2">
|
||
<label>
|
||
Benutzername
|
||
<input type="text" name="username" value="<?= e_attr($input['username']) ?>" autocomplete="username" required>
|
||
<span class="hint">3–32 Zeichen, nur Kleinbuchstaben, Ziffern, Punkt, Bindestrich, Unterstrich.</span>
|
||
</label>
|
||
<label>
|
||
Anzeigename
|
||
<input type="text" name="display_name" value="<?= e_attr($input['display_name']) ?>" maxlength="64">
|
||
</label>
|
||
</div>
|
||
<label>
|
||
E-Mail (optional)
|
||
<input type="email" name="email" value="<?= e_attr($input['email']) ?>" autocomplete="email"<?= $invite !== null && !empty($invite['email']) ? ' readonly' : '' ?>>
|
||
<?php if ($invite !== null && !empty($invite['email'])): ?>
|
||
<span class="hint">Diese Einladung ist an <?= e($invite['email']) ?> gebunden.</span>
|
||
<?php endif; ?>
|
||
</label>
|
||
<div class="grid-2">
|
||
<label>
|
||
Passwort
|
||
<input type="password" name="password" autocomplete="new-password" required>
|
||
<span class="hint">Mindestens 10 Zeichen.</span>
|
||
</label>
|
||
<label>
|
||
Passwort wiederholen
|
||
<input type="password" name="password_repeat" autocomplete="new-password" required>
|
||
</label>
|
||
</div>
|
||
<label class="check">
|
||
<input type="checkbox" name="rights" value="1" required>
|
||
Ich akzeptiere die Beta-Regeln und teile keine Inhalte, an denen ich keine Rechte habe.
|
||
</label>
|
||
<button class="primary" type="submit">Konto anlegen</button>
|
||
</form>
|
||
|
||
<p class="muted small">Schon ein Konto? <a href="<?= e(url('/login')) ?>">Anmelden</a></p>
|
||
</section>
|