- Remove /register route and nav links (users created via Evotor webhook)
- Fix evotor_webhooks.py: use phone=None instead of phone="" to avoid unique constraint
- Add admin "view as user" feature: POST /admin/users/{id}/view-as sets viewed_user_id
in session; POST /admin/view-as/stop clears it
- catalog, vk_catalog, sync, connections GET routes use get_viewed_user() so admins
see another user's data while browsing
- Orange banner shown at top when admin is viewing as another user
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
1.0 KiB
HTML
27 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Вход — ЭВОСИНК{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-center">
|
|
<div class="col-sm-10 col-md-6 col-lg-5">
|
|
<article class="card mt-4">
|
|
<div class="card-body">
|
|
<h1 class="mb-4" style="font-size:1.3rem;">Вход</h1>
|
|
<form method="post" action="/login">
|
|
<label for="email">Email
|
|
<input type="email" id="email" name="email" value="{{ form.email if form else '' }}" required>
|
|
</label>
|
|
<label for="password">Пароль
|
|
<input type="password" id="password" name="password" required>
|
|
</label>
|
|
<button type="submit" class="w-100">Войти</button>
|
|
</form>
|
|
<div class="text-center small mt-3">
|
|
<a href="/forgot-password">Забыли пароль?</a>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|