Sunday 15 September 2013

ember.js - Ember Simple Auth - always login -


I am working on a closed system where you always need to log in. AuthenticatedRouteMixin does not work in Root (Astrouter) level.

I think I can probably embed the login form and handle the login on the root page, but how would I go about redirecting the route route to the login path?

Ideally I would like to route the route just like AuthenticatedRouteMixin

The best solution is to add a / internal route and route it from root Redirect to if the user is logged in. You will be displayed in the AuthenticatedRouteMixin with the internal route login UI root route.


No comments:

Post a Comment