feat: implement user authentication features (registration, activation, and password reset)
All checks were successful
Build and Push Docker Image / build (push) Successful in 46s
All checks were successful
Build and Push Docker Image / build (push) Successful in 46s
- Added email templates for activation and password reset (`activation_email.html`, `password_reset_email.html`, etc.) - Created forms for registration (`RegisterForm`) and login (`LoginForm`) with custom validation - Developed new pages for account activation (`activation_success.html`, `activation_invalid.html`), password reset workflow, and profile - Configured email backend and environment file handling in settings - Updated header template to conditionally display profile or login links based on authentication status - Enhanced CSS styles for authentication-related pages and forms
This commit is contained in:
34
templates/users/register_done.html
Normal file
34
templates/users/register_done.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{% extends '_layouts/base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Подтвердите почту{% endblock %}
|
||||
|
||||
{% block add_css %}
|
||||
<link rel="stylesheet" href="{% static 'css/login.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="auth-page">
|
||||
{% include "_fragments/header.html" %}
|
||||
<main class="auth-section">
|
||||
<div class="container auth-layout">
|
||||
<section class="auth-intro auth-intro--register">
|
||||
<p class="auth-kicker">Почти готово</p>
|
||||
<h1 class="auth-title">Подтвердите почту</h1>
|
||||
<p class="auth-description">
|
||||
Мы отправили письмо на адрес {{ email }}. Перейдите по ссылке из письма, чтобы активировать аккаунт.
|
||||
</p>
|
||||
</section>
|
||||
<section class="auth-panel">
|
||||
<div class="auth-copy-block">
|
||||
<h2 class="auth-panel-title">Что дальше</h2>
|
||||
<p class="auth-panel-text">Проверьте входящие, а также папки «Спам» и «Промоакции», если письмо не видно сразу.</p>
|
||||
<p class="auth-switch">После подтверждения вы автоматически сможете войти в личный кабинет.</p>
|
||||
<a class="auth-secondary-link" href="{% url 'users:login' %}">Вернуться на страницу входа</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
{% include "_fragments/footer.html" %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user