Spaces:
Running
Running
сделай страницу восстановления пароля в ней будет поле email и code , после нажатия на кнопку отправляется письмо на email, после ввода кода, человека перекидывает на страницу, где он должен будет написать новый пароль и подвердить его то есть два поля password, password_confirmation
Browse files- forgot_password.html +90 -0
forgot_password.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Password Recovery | DevPulse Radar</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<style>
|
| 10 |
+
.card-glass {
|
| 11 |
+
backdrop-filter: blur(10px);
|
| 12 |
+
background: rgba(255, 255, 255, 0.1);
|
| 13 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 14 |
+
}
|
| 15 |
+
</style>
|
| 16 |
+
</head>
|
| 17 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen flex items-center justify-center p-4">
|
| 18 |
+
<div class="card-glass p-8 rounded-xl max-w-md w-full">
|
| 19 |
+
<div class="text-center mb-8">
|
| 20 |
+
<i data-feather="lock" class="w-12 h-12 mx-auto text-primary mb-4"></i>
|
| 21 |
+
<h1 class="text-2xl font-bold">Password Recovery</h1>
|
| 22 |
+
<p class="text-gray-400 mt-2">Enter your email to receive a verification code</p>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<form id="emailForm" class="space-y-6">
|
| 26 |
+
<div>
|
| 27 |
+
<label for="email" class="block text-sm font-medium mb-1">Email Address</label>
|
| 28 |
+
<input type="email" id="email" required
|
| 29 |
+
class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 30 |
+
</div>
|
| 31 |
+
|
| 32 |
+
<button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition">
|
| 33 |
+
Send Verification Code
|
| 34 |
+
</button>
|
| 35 |
+
</form>
|
| 36 |
+
|
| 37 |
+
<form id="codeForm" class="space-y-6 hidden">
|
| 38 |
+
<div>
|
| 39 |
+
<label for="code" class="block text-sm font-medium mb-1">Verification Code</label>
|
| 40 |
+
<input type="text" id="code" required
|
| 41 |
+
class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition">
|
| 45 |
+
Verify Code
|
| 46 |
+
</button>
|
| 47 |
+
</form>
|
| 48 |
+
|
| 49 |
+
<form id="passwordForm" class="space-y-6 hidden" action="login.html">
|
| 50 |
+
<div>
|
| 51 |
+
<label for="password" class="block text-sm font-medium mb-1">New Password</label>
|
| 52 |
+
<input type="password" id="password" required
|
| 53 |
+
class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 54 |
+
</div>
|
| 55 |
+
|
| 56 |
+
<div>
|
| 57 |
+
<label for="password_confirmation" class="block text-sm font-medium mb-1">Confirm Password</label>
|
| 58 |
+
<input type="password" id="password_confirmation" required
|
| 59 |
+
class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition">
|
| 63 |
+
Reset Password
|
| 64 |
+
</button>
|
| 65 |
+
</form>
|
| 66 |
+
|
| 67 |
+
<div class="mt-6 text-center">
|
| 68 |
+
<a href="login.html" class="text-primary hover:underline">Back to Login</a>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<script>
|
| 73 |
+
feather.replace();
|
| 74 |
+
|
| 75 |
+
document.getElementById('emailForm').addEventListener('submit', function(e) {
|
| 76 |
+
e.preventDefault();
|
| 77 |
+
// In a real app, you would send the email to your backend
|
| 78 |
+
this.classList.add('hidden');
|
| 79 |
+
document.getElementById('codeForm').classList.remove('hidden');
|
| 80 |
+
});
|
| 81 |
+
|
| 82 |
+
document.getElementById('codeForm').addEventListener('submit', function(e) {
|
| 83 |
+
e.preventDefault();
|
| 84 |
+
// In a real app, you would verify the code with your backend
|
| 85 |
+
this.classList.add('hidden');
|
| 86 |
+
document.getElementById('passwordForm').classList.remove('hidden');
|
| 87 |
+
});
|
| 88 |
+
</script>
|
| 89 |
+
</body>
|
| 90 |
+
</html>
|