import React, { useState } from 'react'; import Head from 'next/head'; import Image from 'next/image'; import Link from 'next/link'; import Button from '~/components/basic/buttons/Button'; import InputField from '~/components/basic/InputField'; import SendEmailOnPasswordReset from './api/auth/SendEmailOnPasswordReset'; export default function VerifyEmail() { const [email, setEmail] = useState(''); const [step, setStep] = useState(1); /** * This function sends the verification email and forwards a user to the next step. */ const sendVerificationEmail = async () => { if (email) { await SendEmailOnPasswordReset({ email }); setStep(2); } }; return (
Login
long logo
{step == 1 && (

Forgot your password?

You will need your emergency kit. Enter your email to start account recovery.

)} {step == 2 && (

Look for an email in your inbox.

An email with instructions has been sent to {email}.

)}
); }