giuroperto / thunder-waste

Ironhack's Module 2 Project
0 stars 0 forks source link

MVP - Part 2 #3

Open giuroperto opened 4 years ago

giuroperto commented 4 years ago

CONTENT

ROUTES

AUTH ROUTES

AUTH - LOGIN

CSS

SIGNUP

CONFIGS

passport.deserializeUser((id, cb) => { User.findById(id, (err, user) => { if (err) { return cb(err); } cb(null, user); }); });

app.use(flash()); passport.use(new LocalStrategy({ passReqToCallback: true }, (req, username, password, next) => { User.findOne({ username }, (err, user) => { if (err) { return next(err); } if (!user) { return next(null, false, { message: "Incorrect username" }); } if (!bcrypt.compareSync(password, user.password)) { return next(null, false, { message: "Incorrect password" }); }

return next(null, user); }); }));

app.use(passport.initialize()); app.use(passport.session());

giuroperto commented 4 years ago

flash messages are not working

giuroperto commented 4 years ago

add map in client's details

giuroperto commented 4 years ago

Delete button user list + employees list

giuroperto commented 4 years ago

Add picture home internal + home users

giuroperto commented 4 years ago

Add validation fields such as CNPJ, email, phone, coordinates...

giuroperto commented 4 years ago

Add admin CRUD -> internal home only for admins

giuroperto commented 4 years ago

FLASH MESSAGES? URL DEFAULT? SELECT OPTIONS? LOAD LAT/LONG FORMS?