mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
3d2cb25a67
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
'use client'
|
|
import React from 'react'
|
|
import classNames from 'classnames'
|
|
import { useSearchParams } from 'next/navigation'
|
|
import Header from '../signin/_header'
|
|
import style from '../signin/page.module.css'
|
|
import ForgotPasswordForm from './ForgotPasswordForm'
|
|
import ChangePasswordForm from '@/app/forgot-password/ChangePasswordForm'
|
|
|
|
const ForgotPassword = () => {
|
|
const searchParams = useSearchParams()
|
|
const token = searchParams.get('token')
|
|
|
|
return (
|
|
<div className={classNames(
|
|
style.background,
|
|
'flex w-full min-h-screen',
|
|
'p-4 lg:p-8',
|
|
'gap-x-20',
|
|
'justify-center lg:justify-start',
|
|
)}>
|
|
<div className={
|
|
classNames(
|
|
'flex w-full flex-col bg-white shadow rounded-2xl shrink-0',
|
|
'md:w-[608px] space-between',
|
|
)
|
|
}>
|
|
<Header />
|
|
{token ? <ChangePasswordForm /> : <ForgotPasswordForm />}
|
|
<div className='px-8 py-6 text-sm font-normal text-gray-500'>
|
|
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ForgotPassword
|