backend: Mot de passe oublié + Securité Next maj

TODO: Page de connexion frontend et profil public
This commit is contained in:
Divlo
2020-03-31 07:48:00 +02:00
parent 49da9d5d48
commit 8c37dbaaf4
7 changed files with 3480 additions and 868 deletions

4211
website/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
"@zeit/next-css": "^1.0.1",
"axios": "^0.19.2",
"html-react-parser": "^0.10.2",
"next": "9.3.1",
"next": "9.3.2",
"next-fonts": "^1.0.3",
"nprogress": "^0.2.0",
"react": "16.13.0",

39
website/pages/login.js Normal file
View File

@ -0,0 +1,39 @@
import { Fragment } from 'react';
import HeadTag from '../components/HeadTag';
import '../public/css/pages/register-login.css';
const Login = () => {
return (
<Fragment>
<HeadTag
title="Se connecter"
description="Connexion à FunctionProject."
/>
<div className="container Register-Login__container">
<div className="row Register-Login__row justify-content-center">
<div className="col-20">
<h1 className="Register-Login__title">Se connecter</h1>
<form>
<div className="form-group">
<label className="form-label" htmlFor="name">Email :</label>
<input type="email" name="email" id="email" className="form-control" placeholder="email@gmail.com" />
</div>
<div className="form-group">
<label className="form-label" htmlFor="name">Mot de passe :</label>
<input type="password" name="password" id="password" className="form-control" placeholder="******" />
</div>
<div className="form-group text-center">
<button type="submit" className="btn btn-dark">Envoyer</button>
</div>
</form>
<div className="form-result text-center"></div>
</div>
</div>
</div>
</Fragment>
);
}
export default Login;