lab-file-upload's People
Forkers
sarahnox papuarza enrikegonzalolegarra borjadrr tahirabf amandahonkanen bruscantini vickycodes chuglas shveinik martadelgado universesurfer michielab agvg gonzaloorio rogorri savianco edsonjmv pauilargia joanamram fernandolarranaga ironhack-tucker jesspalacios aacebal sandrabosk colbyallenc aliguan randseed1724 sherwino mariapottage artseven migmaldonado imguss satishfl iengineer ernesto-quesada ogm710811 santiagoaldanondo ferpalma21 samglez teresatorrijos rosadl cduartez mccr carlosdss fuerinal mikelrumayor kylawamg danielegermani mpalatsig mafevito keleko87 jpedrejon sara-cg frbosquet anaamilo javalba micaelalv macslymo sdziekan octlap markvertra ritorrehuelamo chrisestepa luisa86 jimemart veroglez mir592 alvar8 trigoporres luquiman mpascualach davix76 luisca108 meegido ironhack-exercises willjthorp andergaldeano philipwisner raquel500c danigpgo jviles paolocardini maavsol stuartogardner nicolasbarthez ombline frederic117 yithro reshpatel thibautdavoult lalo8 liudmilae anxhe xxxelf obimiau jprisan alberpedraza cucharadepalo niko7olab-file-upload's Issues
auth.routes.js Line 98
req.session.user = user;
Must be:
req.session.currentUser = user;
Users are saved in "wrong" session
Hey,
I don´t know if you are interested in small bugs - it looks like nobody did this lab recently anyway, but:
To make the lab work I had to change the LoggedIn/Out middleware to check for the correct session name.
req.session.user instead of req.session.currentUser
Same in the auth.routes:
req.session.user = user instead of req.session.currentUser = user
Or you could just change it in app.js to currentUser... (but mogoose uses "user" in their docs)
Thank you!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.