Reset Passwords
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import PropTypes from 'prop-types'
|
||||
import {redirect} from 'next/navigation'
|
||||
import ResetPasswordForm from './form.js'
|
||||
|
||||
export default async function ResetPasswordPage({searchParams}) {
|
||||
console.log('searchParams', searchParams)
|
||||
const {token} = searchParams
|
||||
|
||||
if (!token) {
|
||||
redirect('/login')
|
||||
}
|
||||
|
||||
return (<ResetPasswordForm token={token} />)
|
||||
}
|
||||
|
||||
ResetPasswordPage.propTypes = {
|
||||
searchParams: PropTypes.object
|
||||
}
|
||||
Reference in New Issue
Block a user