feat(auth): add reset-password page and login success banner
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
// app/(auth)/login/page.tsx
|
||||
import { LoginForm } from '@/components/auth/login-form'
|
||||
|
||||
export default function LoginPage() {
|
||||
interface Props {
|
||||
searchParams: Promise<{ message?: string }>
|
||||
}
|
||||
|
||||
export default async function LoginPage({ searchParams }: Props) {
|
||||
const { message } = await searchParams
|
||||
return (
|
||||
<main className="min-h-screen flex items-center justify-center bg-gray-50 p-4">
|
||||
{message === 'password_reset' && (
|
||||
<div className="fixed top-4 left-1/2 -translate-x-1/2 bg-green-50 border border-green-200 text-green-700 text-sm rounded px-4 py-2 shadow">
|
||||
Password updated — sign in with your new password.
|
||||
</div>
|
||||
)}
|
||||
<div className="bg-white rounded-xl shadow-sm border p-8 w-full max-w-sm">
|
||||
<LoginForm />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user