mgenev / how-to-sane

A demonstration of how to use the SANE stack
http://howtosane.ninja
MIT License
163 stars 22 forks source link

illustrate transitioning on auth #81

Open anasyb opened 9 years ago

anasyb commented 9 years ago

This is more of a brainstorming than a cooked PR. I think it would be cool to illustrate transitioning based on whether the user is authenticated or not. At the moment, this home route mixes login with whatever, but it would be cool to actually transition the user to login if not logged in, and otherwise transition him/her to say his/her dashboard at /user/:id.

If one would want to go in more details some configs could be added to config/environment.js:

      authenticationRoute:         'login',
      routeAfterAuthentication:    'application',
      routeIfAlreadyAuthenticated: 'application',
mgenev commented 9 years ago

That sounds good, let's plot out the best way to do this.