parent
50d64b513b
commit
f1d1aa30d7
@ -0,0 +1,61 @@
|
|||||||
|
import React, { useEffect } from "react";
|
||||||
|
import prisma from '../lib/prisma'
|
||||||
|
|
||||||
|
|
||||||
|
import Image from 'next/image';
|
||||||
|
import * as Yup from 'yup';
|
||||||
|
import Head from "next/head";
|
||||||
|
import { getCsrfToken, signIn, useSession } from "next-auth/react";
|
||||||
|
import { yupResolver } from "@hookform/resolvers/yup";
|
||||||
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
|
import { AiOutlineCheck } from 'react-icons/ai'
|
||||||
|
|
||||||
|
import Router from "next/router";
|
||||||
|
|
||||||
|
|
||||||
|
import style from '../styles/Connexion.module.css';
|
||||||
|
|
||||||
|
import imageConnexion from '../public/images/connexion_image.png'
|
||||||
|
|
||||||
|
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
import { GrValidate } from 'react-icons/gr'
|
||||||
|
import { toast } from "react-toastify";
|
||||||
|
import { Token } from "nodemailer/lib/xoauth2";
|
||||||
|
import { isGeneratorFunction } from "util/types";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const VerifyRequest = () => {
|
||||||
|
|
||||||
|
//va rediriger après 3 seconde
|
||||||
|
useEffect(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
Router.push("/")
|
||||||
|
}, 3000)
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Head>
|
||||||
|
<title>Page Confirmation email</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
|
</Head>
|
||||||
|
<div className={`${style['bloc-content']} col-12 col-lg-6`}>
|
||||||
|
<h1 className="fw-light">Un email a été envoyé</h1>
|
||||||
|
<GrValidate size={100} />
|
||||||
|
<div className="d-grid mt-4">
|
||||||
|
<button onClick={() => Router.push("/")} type="button" className={`btn btn-primary`}>
|
||||||
|
Cliquez ici si vous n'êtes pas rediriger à l'accueil
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div >
|
||||||
|
</>)
|
||||||
|
};
|
||||||
|
|
||||||
|
export default VerifyRequest;
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in new issue