49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Login - SneakyScanner{% endblock %}
|
|
|
|
{% set hide_nav = true %}
|
|
|
|
{% block content %}
|
|
<div class="login-card">
|
|
<div class="text-center mb-4">
|
|
<h1 class="brand-title">SneakyScanner</h1>
|
|
<p class="brand-subtitle">Network Security Scanner</p>
|
|
</div>
|
|
|
|
{% if password_not_set %}
|
|
<div class="alert alert-warning">
|
|
<strong>Setup Required:</strong> Please set an application password first.
|
|
<a href="{{ url_for('auth.setup') }}" class="alert-link">Go to Setup</a>
|
|
</div>
|
|
{% else %}
|
|
<form method="post" action="{{ url_for('auth.login') }}">
|
|
<div class="mb-3">
|
|
<label for="password" class="form-label">Password</label>
|
|
<input type="password"
|
|
class="form-control form-control-lg"
|
|
id="password"
|
|
name="password"
|
|
required
|
|
autofocus
|
|
placeholder="Enter your password">
|
|
</div>
|
|
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox"
|
|
class="form-check-input"
|
|
id="remember"
|
|
name="remember">
|
|
<label class="form-check-label" for="remember">
|
|
Remember me
|
|
</label>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary btn-lg w-100">
|
|
Login
|
|
</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|