66 lines
3.5 KiB
HTML
66 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Regenerate Backup Codes - {{ NAME }} IPAM</title>
|
|
<link rel="icon" type="image/png" href="{{ LOGO_PNG }}">
|
|
<link href="/static/css/output.css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
|
|
</head>
|
|
<body class="bg-gray-300 text-gray-900 dark:bg-zinc-900 dark:text-gray-100 min-h-screen flex flex-col">
|
|
{% include 'header.html' %}
|
|
<div class="flex-1 flex items-center justify-center mx-4">
|
|
<div class="container py-8 max-w-2xl pt-20">
|
|
<div class="bg-gray-200 dark:bg-zinc-800 rounded-2xl shadow-lg p-8">
|
|
<div class="mb-4">
|
|
<a href="/account" class="text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200">
|
|
<i class="fas fa-arrow-left mr-2"></i>Back to Account Settings
|
|
</a>
|
|
</div>
|
|
<h1 class="text-3xl font-bold mb-6 text-center">
|
|
<i class="fas fa-key mr-2"></i>
|
|
New Backup Codes
|
|
</h1>
|
|
|
|
<div class="space-y-6">
|
|
<div class="bg-yellow-200 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200 p-4 rounded-lg">
|
|
<p class="font-semibold mb-2">
|
|
<i class="fas fa-exclamation-triangle mr-2"></i>
|
|
Important: Save Your New Backup Codes
|
|
</p>
|
|
<p class="text-sm">
|
|
Your old backup codes have been invalidated. These new codes can be used to access your account if you lose your authenticator device.
|
|
Store them in a safe place. Each code can only be used once.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="bg-gray-300 dark:bg-zinc-900 p-6 rounded-lg">
|
|
<h2 class="text-xl font-bold mb-4 text-center">Your New Backup Codes</h2>
|
|
<div class="grid grid-cols-2 gap-4 font-mono text-center">
|
|
{% for code_pair in backup_codes %}
|
|
<div class="p-3 bg-gray-200 dark:bg-zinc-800 rounded border border-gray-400 dark:border-zinc-600">
|
|
{{ code_pair }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex gap-4">
|
|
<button onclick="window.print()" class="flex-1 bg-gray-300 hover:bg-gray-400 dark:bg-zinc-700 dark:hover:bg-zinc-600 hover:cursor-pointer px-4 py-3 rounded-lg flex items-center gap-2 justify-center">
|
|
<i class="fas fa-print"></i>
|
|
<span>Print Codes</span>
|
|
</button>
|
|
<a href="/account" class="flex-1 bg-gray-300 hover:bg-gray-400 dark:bg-zinc-700 dark:hover:bg-zinc-600 hover:cursor-pointer px-4 py-3 rounded-lg flex items-center gap-2 justify-center text-center">
|
|
<i class="fas fa-check"></i>
|
|
<span>Done</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|