mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Move ForgorForm
This commit is contained in:
parent
161c44924e
commit
28a32044f4
2 changed files with 5 additions and 3 deletions
|
|
@ -2,10 +2,11 @@ import { useState, type FormEvent } from 'react'
|
|||
import toast from 'react-hot-toast'
|
||||
|
||||
import * as m from 'paraglide/messages.js'
|
||||
import Button from './Button'
|
||||
import Modal from './Modal'
|
||||
import { resetPassword } from 'utils/auth-client'
|
||||
|
||||
import Button from 'components/Button'
|
||||
import Modal from 'components/Modal'
|
||||
|
||||
export default function ForgorForm(props: { token: string }) {
|
||||
const { token } = props
|
||||
const [loading, setLoading] = useState(false)
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
import ForgorForm from 'components/ForgorForm'
|
||||
import ForgorForm from 'components/form/ForgorForm'
|
||||
import BaseLayout from 'layouts/base.astro'
|
||||
|
||||
const token = Astro.url.searchParams.get('token')
|
||||
|
||||
if (!token) return Astro.redirect('/404')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue