Files
skeleton-api/app/templates/login.html
T
2026-07-16 17:05:30 -03:00

33 lines
1.1 KiB
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 %}
<label>Email
<input type="email" name="email" value="{{ email or '' }}" required autofocus>
</label>
<label>Password
<input type="password" name="password" required>
</label>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
{% if ldap_enabled %}
<form class="card auth-card" method="post" action="/login/ldap">
<h2>Sign in with LDAP</h2>
<p class="muted">Use your directory username and password</p>
<label>Username
<input type="text" name="username" value="{{ username or '' }}" required>
</label>
<label>Password
<input type="password" name="password" required>
</label>
<button type="submit" class="btn btn-primary">Sign in with LDAP</button>
</form>
{% endif %}
</div>
{% endblock %}