Quelltext des aktuellen Standes
<?php $this->layout('layouts/auth', ['page_title' => $page_title ?? 'Bestätigung erforderlich']); ?>
<div class="auth-box-body">
<p class="auth-box-msg">
<strong><?= $this->te('Bestätigung erforderlich') ?></strong><br>
<small style="color:var(--color-secondary);">
<?php if (($factor ?? null) === 'totp'): ?>
<?= $this->te('Diese Aktion ist besonders sensibel. Bitte gib zur Bestätigung den aktuellen Code aus deiner Authenticator-App ein.') ?>
<?php else: ?>
<?= $this->te('Diese Aktion ist besonders sensibel. Bitte bestätige mit deinem Kontopasswort.') ?>
<?php endif; ?>
</small>
</p>
<?php if (($factor ?? null) === null): ?>
<div class="auth-alert auth-alert-error">
<?= $this->te('Für dein Konto ist kein zweiter Faktor und kein lokales Passwort hinterlegt – eine erneute Bestätigung ist nicht möglich.') ?>
</div>
<?php else: ?>
<form method="POST" action="/account/verify">
<input type="hidden" name="_csrf" value="<?= $this->csrf() ?>">
<input type="hidden" name="return" value="<?= $this->e($return ?? '/dashboard') ?>">
<?php if (($factor ?? null) === 'totp'): ?>
<div class="form-group">
<label for="credential"><?= $this->te('Code aus der Authenticator-App') ?></label>
<input type="text" id="credential" name="credential" class="form-control"
inputmode="numeric" pattern="\d{6}" maxlength="6" required autofocus
autocomplete="one-time-code" placeholder="<?= $this->te('6-stelliger Code') ?>"
style="font-size:1.2rem;letter-spacing:.25em;text-align:center;font-weight:700;">
</div>
<?php else: ?>
<div class="form-group">
<label for="credential"><?= $this->te('Kontopasswort') ?></label>
<input type="password" id="credential" name="credential" class="form-control"
required autofocus autocomplete="current-password" placeholder="<?= $this->te('Passwort') ?>">
</div>
<?php endif; ?>
<button type="submit" class="btn btn-primary btn-block">
<i class="fas fa-shield-alt mr-1"></i><?= $this->te('Bestätigen') ?>
</button>
</form>
<?php endif; ?>
<div style="text-align:center;margin-top:1rem;">
<a href="<?= $this->e($return ?? '/dashboard') ?>" style="font-size:.85rem;color:var(--color-secondary);"><?= $this->te('Abbrechen') ?></a>
</div>
</div>