Spaces:
Running
Running
сделай страницу восстановления пароля в ней будет поле email и code , после нажатия на кнопку отправляется письмо на email, после ввода кода, человека перекидывает на страницу, где он должен будет написать новый пароль и подвердить его то есть два поля password, password_confirmation
e5403ad verified Download forgot_password.html from WinLanEm/devpulse-radar: direct link, hf CLI and curl.
- Browser
- Download file 4.03 kB
-
https://huggingface.co/spaces/WinLanEm/devpulse-radar/resolve/main/forgot_password.html
- Command line
-
hf download hf://spaces/WinLanEm/devpulse-radar/forgot_password.html
-
curl -L -o forgot_password.html https://huggingface.co/spaces/WinLanEm/devpulse-radar/resolve/main/forgot_password.html
4.03 kB
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Password Recovery | DevPulse Radar</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <style> | |
| .card-glass { | |
| backdrop-filter: blur(10px); | |
| background: rgba(255, 255, 255, 0.1); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 text-gray-100 min-h-screen flex items-center justify-center p-4"> | |
| <div class="card-glass p-8 rounded-xl max-w-md w-full"> | |
| <div class="text-center mb-8"> | |
| <i data-feather="lock" class="w-12 h-12 mx-auto text-primary mb-4"></i> | |
| <h1 class="text-2xl font-bold">Password Recovery</h1> | |
| <p class="text-gray-400 mt-2">Enter your email to receive a verification code</p> | |
| </div> | |
| <form id="emailForm" class="space-y-6"> | |
| <div> | |
| <label for="email" class="block text-sm font-medium mb-1">Email Address</label> | |
| <input type="email" id="email" required | |
| 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"> | |
| </div> | |
| <button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition"> | |
| Send Verification Code | |
| </button> | |
| </form> | |
| <form id="codeForm" class="space-y-6 hidden"> | |
| <div> | |
| <label for="code" class="block text-sm font-medium mb-1">Verification Code</label> | |
| <input type="text" id="code" required | |
| 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"> | |
| </div> | |
| <button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition"> | |
| Verify Code | |
| </button> | |
| </form> | |
| <form id="passwordForm" class="space-y-6 hidden" action="login.html"> | |
| <div> | |
| <label for="password" class="block text-sm font-medium mb-1">New Password</label> | |
| <input type="password" id="password" required | |
| 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"> | |
| </div> | |
| <div> | |
| <label for="password_confirmation" class="block text-sm font-medium mb-1">Confirm Password</label> | |
| <input type="password" id="password_confirmation" required | |
| 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"> | |
| </div> | |
| <button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition"> | |
| Reset Password | |
| </button> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <a href="login.html" class="text-primary hover:underline">Back to Login</a> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| document.getElementById('emailForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // In a real app, you would send the email to your backend | |
| this.classList.add('hidden'); | |
| document.getElementById('codeForm').classList.remove('hidden'); | |
| }); | |
| document.getElementById('codeForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // In a real app, you would verify the code with your backend | |
| this.classList.add('hidden'); | |
| document.getElementById('passwordForm').classList.remove('hidden'); | |
| }); | |
| </script> | |
| </body> | |
| </html> |