Skip to content

Implement passport

Gianluca Mastrolonardo requested to merge implement-passport into main

Implemented federal login with Passport.js using Google.

Created other two table inside the DB (UserGoogle and PartecipantsEventsGoogle), for store all the User that are sign up with Google, and their tickets. This table are needed because Google IDs can't be stored in LONGINT field.

Added SQL Queries for SELECT and INSERT.

Added Passport and auth.js route in the app.js file. Fields are stored inside the session (like a regular user or artist).

Changed a little bit of the frontend, like adding the Google "Continue with Google" button and other stuff.

This code can be improved...

Merge request reports

Loading