KhadarYonis / symfony4-auth

Authentication & Registration features on Symfony 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symfony 4 Auth

Build Status

This project is a "proof of concept" to demonstrate how to build an authentication system with Symfony 4 using no dependencies (such as FOSUserBundle).

It covers the following features :

  • User registration, automatically logging the user and redirecting him to home page with a flash message
  • User login with email
  • Remember me option available on the login form
  • Automatically sets up the user's created_at timestamp upon registration using Doctrine Lifecycle events
  • Listener to prevent the user to go back to anonymous pages when logged in
  • Listener to automatically update user's last login timestamp upon every successful authentication
  • Assets management with @symfony/webpack-encore

Requirements

  • PHP >=7.3

Setting up

Install dependencies

composer install
npm install # or yarn install
npm run dev

Generate database schema

php bin/console doctrine:migrations:migrate

Live demo

https://symfony4-auth.frank-fidanza.fr/

About

Authentication & Registration features on Symfony 4


Languages

Language:PHP 63.3%Language:HTML 27.1%Language:CSS 6.9%Language:JavaScript 2.7%