Files
slim-blog/views/pages/auth/password-reset.twig
2026-03-16 01:47:07 +01:00

47 lines
1.9 KiB
Twig
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "layout.twig" %}
{% block title %}Réinitialisation du mot de passe Slim Blog{% endblock %}
{% block content %}
<div class="form-container form-container--narrow">
<div class="form-container__panel">
<div class="form-container__header">
<h2 class="form-container__title">Nouveau mot de passe</h2>
</div>
{% if error %}
<div class="alert alert--danger">{{ error }}</div>
{% endif %}
<form method="post" action="/password/reset" class="form-container__form">
<input type="hidden" name="{{ csrf.keys.name }}" value="{{ csrf.name }}">
<input type="hidden" name="{{ csrf.keys.value }}" value="{{ csrf.value }}">
<input type="hidden" name="token" value="{{ token }}">
<p class="form-container__field">
<label for="new_password" class="form-container__label">
<span>Nouveau mot de passe</span>
<input type="password" id="new_password" name="new_password"
required minlength="8" autofocus class="form-container__input">
</label>
<small class="form-container__hint">Minimum 8 caractères</small>
</p>
<p class="form-container__field">
<label for="new_password_confirm" class="form-container__label">
<span>Confirmer le mot de passe</span>
<input type="password" id="new_password_confirm" name="new_password_confirm"
required minlength="8" class="form-container__input">
</label>
</p>
<div class="form-container__actions">
<div class="form-container__action">
<button type="submit" class="btn btn--primary btn--lg btn--full">Réinitialiser</button>
</div>
</div>
</form>
</div>
</div>
{% endblock %}