feat: Kür-Hub mit Einladungen, Uploads und API
- 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
This commit is contained in:
parent
e79b477ee0
commit
055a2919c3
38 changed files with 5111 additions and 0 deletions
31
hub/views/login.php
Normal file
31
hub/views/login.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php /** @var string $error */ ?>
|
||||
<?php /** @var string $login */ ?>
|
||||
<?php /** @var string $next */ ?>
|
||||
<section class="auth-card">
|
||||
<h1>Anmelden</h1>
|
||||
<p class="muted">Der Kür-Hub ist in einer geschlossenen Beta. Zugang gibt es per Einladungscode.</p>
|
||||
|
||||
<?php if ($error !== ''): ?>
|
||||
<div class="flash flash-error"><?= e($error) ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="<?= e(url('/login')) ?>" class="stack">
|
||||
<?= csrf_field() ?>
|
||||
<input type="hidden" name="next" value="<?= e_attr($next) ?>">
|
||||
<label>
|
||||
Benutzername oder E-Mail
|
||||
<input type="text" name="login" value="<?= e_attr($login) ?>" autocomplete="username" required autofocus>
|
||||
</label>
|
||||
<label>
|
||||
Passwort
|
||||
<input type="password" name="password" autocomplete="current-password" required>
|
||||
</label>
|
||||
<label class="check">
|
||||
<input type="checkbox" name="remember" value="1">
|
||||
Angemeldet bleiben (30 Tage)
|
||||
</label>
|
||||
<button class="primary" type="submit">Anmelden</button>
|
||||
</form>
|
||||
|
||||
<p class="muted small">Noch keinen Zugang? Ein Beta-Code kommt von der Hub-Administration.</p>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue