You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
529 B
18 lines
529 B
'use client'
|
|
|
|
import { useSearchParams } from 'next/navigation'
|
|
import ResetPasswordForm from '../(components)/reset-password-form'
|
|
|
|
import RequestPasswordResetForm from '../(components)/request-password-reset-form'
|
|
|
|
export default function ResetPasswordPage() {
|
|
const searchParams = useSearchParams()
|
|
const otp = searchParams.get('otp')
|
|
const email = searchParams.get('email')
|
|
|
|
if (otp && email) {
|
|
return <ResetPasswordForm email={decodeURIComponent(email)} otp={otp} />
|
|
}
|
|
|
|
return <RequestPasswordResetForm />
|
|
}
|