41ab900c33
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
2.0 KiB
HTML
40 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Change password · Terra-View</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
</head>
|
|
<body class="bg-slate-900 text-slate-100 min-h-screen flex items-center justify-center">
|
|
<div class="w-full max-w-sm p-8 bg-slate-800 rounded-xl shadow-lg">
|
|
<h1 class="text-xl font-semibold mb-2 text-center">Change your password</h1>
|
|
{% if must_change %}
|
|
<p class="mb-4 text-sm text-amber-300 text-center">Please set a new password to continue.</p>
|
|
{% endif %}
|
|
{% if error %}
|
|
<div class="mb-4 px-3 py-2 rounded bg-red-900/60 text-red-200 text-sm">{{ error }}</div>
|
|
{% endif %}
|
|
<form method="post" action="/change-password" class="space-y-4">
|
|
<div>
|
|
<label class="block text-sm mb-1" for="current_password">Current password</label>
|
|
<input id="current_password" name="current_password" type="password" required
|
|
class="w-full px-3 py-2 rounded bg-slate-700 border border-slate-600 focus:outline-none focus:ring-2 focus:ring-orange-500">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm mb-1" for="new_password">New password</label>
|
|
<input id="new_password" name="new_password" type="password" minlength="8" required
|
|
class="w-full px-3 py-2 rounded bg-slate-700 border border-slate-600 focus:outline-none focus:ring-2 focus:ring-orange-500">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm mb-1" for="confirm_password">Confirm new password</label>
|
|
<input id="confirm_password" name="confirm_password" type="password" minlength="8" required
|
|
class="w-full px-3 py-2 rounded bg-slate-700 border border-slate-600 focus:outline-none focus:ring-2 focus:ring-orange-500">
|
|
</div>
|
|
<button type="submit"
|
|
class="w-full py-2 rounded bg-orange-500 hover:bg-orange-600 font-medium">Update password</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|