Files
fitguide/app/templates/login.html
T
2026-07-19 12:02:41 -03:00

25 lines
811 B
HTML

{% extends "base.html" %}
{% block title %}Sign in · {{ app_name }}{% endblock %}
{% block body %}
<div class="auth-shell">
<form class="card auth-card" method="post" action="/login">
<h1>{{ app_name }}</h1>
<p class="muted">Sign in to continue</p>
{% if error %}<div class="alert">{{ error }}</div>{% endif %}
{% if ldap_enabled %}
<label>Email or username
<input type="text" name="email" value="{{ email or '' }}" required autofocus>
</label>
{% else %}
<label>Email
<input type="email" name="email" value="{{ email or '' }}" required autofocus>
</label>
{% endif %}
<label>Password
<input type="password" name="password" required>
</label>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
</div>
{% endblock %}