5d568f7f89
- Implemented 2FA management in admin panel with enable/disable options. - Added QR code display for 2FA setup and input for TOTP codes in login and pickup forms. - Introduced key management section for generating, loading, and clearing RSA key pairs. - Enhanced file upload and sharing functionality with optional 2FA. - Added buttons for switching between development and production modes in admin panel. - Updated API documentation to reflect new 2FA and key management features.
72 lines
2.6 KiB
HTML
72 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="description" content="PacCrypt - Admin Login" />
|
|
<title>Admin Login - PacCrypt</title>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/PacCrypt.png') }}" />
|
|
|
|
<!-- Stylesheets -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}" />
|
|
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
|
|
|
|
<!-- Scripts -->
|
|
<script type="module" src="{{ url_for('static', filename='js/main.js') }}"></script>
|
|
</head>
|
|
<body class="dark">
|
|
<!-- Header -->
|
|
<header class="card logo-header">
|
|
<div class="logo-container">
|
|
<img src="{{ url_for('static', filename='img/PacCrypt.png') }}" alt="PacCrypt Logo" />
|
|
<div class="logo-text">
|
|
<h1>PACCRYPT</h1>
|
|
<p>Admin Login</p>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<!-- Main Content -->
|
|
<main>
|
|
<!-- Login Form Section -->
|
|
<section class="card form-group">
|
|
<h2>Admin Login</h2>
|
|
|
|
<!-- Flash Messages -->
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
<p style="color: red;">{{ messages[0] }}</p>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<!-- Login Form -->
|
|
<form method="POST">
|
|
<input type="text" name="username" placeholder="Username" required />
|
|
<input type="password" name="password" placeholder="Password" required />
|
|
|
|
{% if requires_2fa %}
|
|
<!-- 2FA Code Input -->
|
|
<div class="form-group">
|
|
<input type="text" name="totp_code" placeholder="2FA Code (6 digits)" pattern="[0-9]{6}" maxlength="6" required />
|
|
<small style="color: #ccc;">Enter the 6-digit code from your authenticator app</small>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="button-group mt-3">
|
|
<button type="submit">Log In</button>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<p>© 2025 UnNaturalll-Dev. All rights reserved.</p>
|
|
<a href="https://github.com/TySP-Dev" target="_blank" id="github-link">
|
|
<img src="\static\img\Github_logo.png" alt="GitHub Logo" width="100" />
|
|
</a>
|
|
</footer>
|
|
</body>
|
|
</html>
|