78 lines
3.0 KiB
HTML
Executable File
78 lines
3.0 KiB
HTML
Executable File
{% extends "base.html" %}
|
|
{% block title %}Code eingeben{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-5 col-lg-4">
|
|
<div class="card bg-dark border-secondary">
|
|
<div class="card-body p-4">
|
|
<div class="text-center mb-4">
|
|
<i class="bi bi-shield-lock display-4 text-success"></i>
|
|
<h2 class="mt-3">Code eingeben</h2>
|
|
<p class="text-muted">
|
|
Wir haben einen 6-stelligen Code an<br>
|
|
<strong>{{ email }}</strong> gesendet
|
|
</p>
|
|
</div>
|
|
|
|
<form method="post" autocomplete="off">
|
|
<div class="mb-4">
|
|
<label for="code" class="form-label">Sicherheitscode</label>
|
|
<input type="text"
|
|
name="code"
|
|
id="code"
|
|
class="form-control form-control-lg bg-dark text-light border-secondary text-center"
|
|
placeholder="000000"
|
|
maxlength="6"
|
|
pattern="[0-9]{6}"
|
|
inputmode="numeric"
|
|
required
|
|
autofocus
|
|
style="font-size: 1.5rem; letter-spacing: 0.5rem;">
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-success btn-lg w-100">
|
|
<i class="bi bi-check-circle me-2"></i>
|
|
Bestaetigen
|
|
</button>
|
|
</form>
|
|
|
|
<hr class="border-secondary my-4">
|
|
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<a href="{{ url_for('auth.login') }}" class="btn btn-outline-secondary btn-sm">
|
|
<i class="bi bi-arrow-left me-1"></i>
|
|
Zurueck
|
|
</a>
|
|
<form action="{{ url_for('auth.resend') }}" method="post" class="d-inline">
|
|
<button type="submit" class="btn btn-outline-secondary btn-sm">
|
|
<i class="bi bi-arrow-clockwise me-1"></i>
|
|
Neuen Code senden
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="text-center mt-4 text-muted">
|
|
<small>
|
|
<i class="bi bi-clock me-1"></i>
|
|
Der Code ist 10 Minuten gueltig
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block extra_js %}
|
|
<script>
|
|
// Auto-focus and only allow numbers
|
|
document.getElementById('code').addEventListener('input', function(e) {
|
|
this.value = this.value.replace(/[^0-9]/g, '');
|
|
if (this.value.length === 6) {
|
|
this.form.submit();
|
|
}
|
|
});
|
|
</script>
|
|
{% endblock %}
|