feat: согласие на cookies — блокировка входа и регистрации

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 11:32:08 +03:00
parent 14e0e875f1
commit bda73e1662
13 changed files with 222 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
<%- include('partials/layout-start', { returnTo: returnTo }) %>
<div class="cookies-required">
<h1>Согласие на cookies</h1>
<p>Для этой страницы (вход, регистрация, личный кабинет) необходимо принять использование cookies.</p>
<p class="muted">Мы сохраняем только технические cookies для сессии и безопасности.</p>
<form action="/cookies/accept" method="post" class="cookie-banner__actions" style="margin-top:1rem">
<input type="hidden" name="return_to" value="<%= returnTo %>">
<button type="submit" class="btn btn--primary btn--lg">Принимаю cookies</button>
<a href="/" class="btn btn--ghost">На главную</a>
</form>
<p style="margin-top:1rem"><a href="/cookies/policy">Политика cookies</a></p>
</div>
<%- include('partials/layout-end') %>