lmcneel / stalks

UT Coding BC at Houston Project 3
3 stars 1 forks source link

Mering so login signup logout works correctly i hope.. #534

Closed tranmike270 closed 6 years ago

tranmike270 commented 6 years ago

Other than the CSS edits done by @coolcaliente for the splash and loging signup boxes

Changes to the following folders client/src/utils/API.js there were multiple routes for login / signup i believe i got rid of the extra ones that were creating errors

mysql/user.js moved all afterCreate hooks into passports.js

config/passport.js change sign-up to do everything that was done in the afterCreate hook from mysql/user.js so the updates and be set into req.session.user

api/userAuth.js added logout route that should destory session and log user out

those are only the main changes