foundersandcoders / facform

Week 8 project for FAC5 to create a learning platform for Founders & Coders
GNU General Public License v2.0
2 stars 0 forks source link

Handlers - prefer redirect to reply.view #50

Open MIJOTHY opened 9 years ago

MIJOTHY commented 9 years ago

A lot of 'try' authentication configs and replying with index to different routes - you could try setting up a single route that serves up index and use it as your redirectTo in the hapi-auth-cookie config in server.js, cutting out all the 'req.auth.isAuthenticated' checks as it's handled for you.

jackpandas commented 9 years ago

@heron2014 @jrans @Danwhy take note!