From 72cf36e033ba794db7982befa45f035b62fa6cd2 Mon Sep 17 00:00:00 2001 From: "Alberto Duarte (PWC)" Date: Mon, 9 Oct 2023 17:32:25 +0100 Subject: Changes --- app/password-recovery/page.tsx | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app/password-recovery/page.tsx (limited to 'app/password-recovery') diff --git a/app/password-recovery/page.tsx b/app/password-recovery/page.tsx new file mode 100644 index 0000000..6a56d7a --- /dev/null +++ b/app/password-recovery/page.tsx @@ -0,0 +1,44 @@ +'use client' +import { link } from 'fs' +import Link from 'next/link' +import { AuthContext } from '../components/AuthContext' +import { useContext, useEffect, useState } from 'react'; + +// import NetflixLogo from '../../../public/images/netflix_logo.svg' + +export default function PasswordRecovery() { + const user = useContext(AuthContext); + const [email, setEmail] = useState(''); + + useEffect(() => { + // Check if user is authenticated + if (!user) { + // Redirect or perform any necessary action + } else { + // User is authenticated, continue with desired logic + setEmail(user.email) + } + }, [user]); + + return ( +
+

Password Recovery

+
+
+ + setEmail(e.target.value)}/> +
+ +
+ +
+ Do you have an account?{' '} + +

Login

+ +
+
+ ); +} -- cgit v1.2.3-54-g00ecf