Release v2.2: admin auth settings, Passkey RP ID, Cloudflare and Google captcha
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
<label for="email">Email</label>
|
||||
<input type="email" id="email" name="email" required autocomplete="email">
|
||||
</div>
|
||||
{% include "partials/captcha.html" %}
|
||||
<button type="submit" class="btn btn--primary btn--full">Отправить ссылку</button>
|
||||
</form>
|
||||
<p class="auth-card__footer"><a href="{{ url_for('auth.login') }}">← Вернуться ко входу</a></p>
|
||||
@@ -21,3 +22,7 @@
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include "partials/captcha_scripts.html" %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
{% include "partials/alerts.html" %}
|
||||
|
||||
{% if auth_settings.password_login_enabled %}
|
||||
<form method="post" class="auth-form">
|
||||
<div class="form-group">
|
||||
<label for="login">Логин или email</label>
|
||||
@@ -24,16 +25,25 @@
|
||||
<input type="checkbox" name="remember">
|
||||
<span>Запомнить меня</span>
|
||||
</label>
|
||||
{% include "partials/captcha.html" %}
|
||||
<button type="submit" class="btn btn--primary btn--full">Войти</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if auth_settings.passkey_enabled %}
|
||||
<button type="button" class="btn btn--ghost btn--full" id="passkeyLoginBtn" style="margin-top:12px">
|
||||
Войти с Passkey
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
<p class="auth-card__footer">
|
||||
<a href="{{ url_for('auth.forgot_password') }}">Забыли пароль?</a> ·
|
||||
{% if auth_settings.password_login_enabled %}
|
||||
<a href="{{ url_for('auth.forgot_password') }}">Забыли пароль?</a>
|
||||
{% if auth_settings.registration_enabled %} · {% endif %}
|
||||
{% endif %}
|
||||
{% if auth_settings.registration_enabled %}
|
||||
<a href="{{ url_for('auth.register') }}">Зарегистрироваться</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,5 +51,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include "partials/captcha_scripts.html" %}
|
||||
{% if auth_settings.passkey_enabled %}
|
||||
<script src="{{ url_for('static', filename='js/passkey.js') }}"></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<label for="password2">Подтверждение пароля</label>
|
||||
<input type="password" id="password2" name="password2" required minlength="6" autocomplete="new-password" placeholder="повторите пароль">
|
||||
</div>
|
||||
{% include "partials/captcha.html" %}
|
||||
<button type="submit" class="btn btn--primary btn--full">Создать аккаунт</button>
|
||||
</form>
|
||||
|
||||
@@ -38,3 +39,7 @@
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% include "partials/captcha_scripts.html" %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user