Archived
32 lines
1.8 KiB
HTML
32 lines
1.8 KiB
HTML
{% extends "auth_base.html" %}
|
|
{% block auth_content %}
|
|
<section class="auth-card">
|
|
<div class="auth-card-head">
|
|
<img class="brand-mark auth-mark brand-logo" src="{{ branding.logo or (base_path ~ '/static/img/wgtools-logo.png?v=' ~ version ~ '&r=' ~ asset_rev) }}" alt="">
|
|
<div>
|
|
<h1>{{ tr('auth.login_title') }}</h1>
|
|
<p>{{ tr('auth.login_subtitle') }}</p>
|
|
</div>
|
|
</div>
|
|
<form id="login-form" class="auth-form">
|
|
<label><span>{{ tr('auth.username') }}</span><input id="auth-username" name="username" autocomplete="username" maxlength="64" required autofocus></label>
|
|
<label><span>{{ tr('auth.password') }}</span><input id="auth-password" name="password" type="password" autocomplete="current-password" maxlength="256" required></label>
|
|
{% if password_recovery_available %}
|
|
<div class="auth-secondary-row"><a href="{{ base_path }}/forgot-password">{{ tr('auth.forgot_password') }}</a></div>
|
|
{% endif %}
|
|
<div id="auth-error" class="operation-status error" hidden></div>
|
|
<button type="submit" class="btn primary auth-submit">{{ tr('auth.sign_in') }}</button>
|
|
</form>
|
|
<form id="mfa-login-form" class="auth-form" hidden>
|
|
<div class="auth-mfa-intro">
|
|
<b>{{ tr('auth.mfa_title') }}</b>
|
|
<p>{{ tr('auth.mfa_login_help') }}</p>
|
|
</div>
|
|
<label><span>{{ tr('auth.mfa_code') }}</span><input id="auth-mfa-code" name="code" autocomplete="one-time-code" maxlength="32" autocapitalize="characters" spellcheck="false" required></label>
|
|
<div id="mfa-auth-error" class="operation-status error" hidden></div>
|
|
<button type="submit" class="btn primary auth-submit">{{ tr('auth.mfa_verify') }}</button>
|
|
<button type="button" class="btn auth-submit" id="mfa-login-back">{{ tr('auth.mfa_back') }}</button>
|
|
</form>
|
|
</section>
|
|
{% endblock %}
|