You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
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 AuthError = () => {
|
|
|
|
//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['masthead']} d-flex justify-content-center align-items-center text-center`}>
|
|
<div className="container align-items-center d-flex flex-column">
|
|
|
|
|
|
<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 >
|
|
</div>
|
|
</div>
|
|
</>)
|
|
};
|
|
|
|
export default AuthError;
|
|
|
|
|