Files
OSINT/templates/accounts/password_reset_confirm.html
Iliyan Angelov ed94dd22dd update
2025-11-26 22:32:20 +02:00

42 lines
2.0 KiB
HTML
Raw Permalink 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 'base.html' %}
{% block title %}Задаване на Нова Парола - Официален Портал{% endblock %}
{% block content %}
<div class="auth-container">
<div class="auth-card">
<h2>Задаване на Нова Парола</h2>
{% if validlink %}
<form method="post">
{% csrf_token %}
<div class="form-group">
<label for="id_new_password1">Нова Парола</label>
<input type="password" name="new_password1" id="id_new_password1" class="form-control" required autofocus>
{% if form.new_password1.errors %}
<div class="error-message">{{ form.new_password1.errors }}</div>
{% endif %}
<small class="form-text">Минимум 12 символа</small>
</div>
<div class="form-group">
<label for="id_new_password2">Потвърждение на Новата Парола</label>
<input type="password" name="new_password2" id="id_new_password2" class="form-control" required>
{% if form.new_password2.errors %}
<div class="error-message">{{ form.new_password2.errors }}</div>
{% endif %}
</div>
<button type="submit" class="btn btn-primary btn-block">Смяна на Парола</button>
</form>
{% else %}
<div class="gov-alert gov-alert-error">
<div class="alert-icon"></div>
<div class="alert-content">
<p>Връзката за възстановяване на парола е невалидна или е изтекла. Моля, заявете нова.</p>
<a href="{% url 'accounts:password_reset' %}" class="btn btn-primary" style="margin-top: 1rem;">Заявка за Нова Връзка</a>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}