feat: password reset UI (forgot password, reset page, admin reset button)

This commit is contained in:
2026-01-28 21:44:22 +00:00
parent 6e451e0795
commit 696e2187f4
6 changed files with 420 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useNavigate, Link } from 'react-router-dom';
import { useAuthStore } from '@/stores/auth';
import { Network, Eye, EyeOff } from 'lucide-react';
import LoadingSpinner from '@/components/LoadingSpinner';
@@ -61,7 +61,15 @@ export default function LoginPage() {
</div>
<div>
<label className="block text-sm font-medium text-slate-700 mb-1.5">Password</label>
<div className="flex items-center justify-between mb-1.5">
<label className="block text-sm font-medium text-slate-700">Password</label>
<Link
to="/forgot-password"
className="text-xs text-blue-600 hover:text-blue-700"
>
Forgot password?
</Link>
</div>
<div className="relative">
<input
type={showPassword ? 'text' : 'password'}