OpenNIT

Quelltext des aktuellen Standes

Fassung 1.1.1

password-reset.php

2 KB
<?php $this->layout('layouts/auth', ['page_title' => 'Neues Passwort setzen']); ?>

<div class="auth-box-body">
    <p class="auth-box-msg"><?= $this->te('Neues Passwort setzen') ?></p>

    <?php foreach ($this->flash() as $fm): ?>
        <div class="auth-alert <?= ($fm['type'] ?? '') === 'success' ? 'auth-alert-success' : 'auth-alert-error' ?>">
            <?= $this->e($fm['message'] ?? '') ?>
        </div>
    <?php endforeach; ?>

    <p style="font-size:0.83rem;color:var(--color-text-muted);line-height:1.5;margin:0 0 1rem;">
        <?= $this->te('Vergeben Sie ein neues Passwort (mindestens 10 Zeichen). Nach dem Speichern werden alle bestehenden Sitzungen abgemeldet.') ?>
    </p>

    <form method="POST" action="/password/reset">
        <input type="hidden" name="_csrf" value="<?= $this->csrf() ?>">
        <input type="hidden" name="token" value="<?= $this->e($token ?? '') ?>">
        <div class="auth-input-group">
            <input type="password" name="new_password" class="form-control" required
                   minlength="10" placeholder="<?= $this->te('Neues Passwort') ?>" autocomplete="new-password" autofocus>
        </div>
        <div class="auth-input-group">
            <input type="password" name="new_password_confirm" class="form-control" required
                   minlength="10" placeholder="<?= $this->te('Neues Passwort bestätigen') ?>" autocomplete="new-password">
        </div>
        <button type="submit" class="btn btn-primary btn-block"><?= $this->te('Passwort speichern') ?></button>
    </form>

    <p style="text-align:center;margin:1rem 0 0;font-size:0.82rem;">
        <a href="/login" style="color:var(--color-text-muted);"><?= $this->te('&larr; Zur Anmeldung') ?></a>
    </p>
</div>