javascript - Ember Simple Auth: how to keep data in a step by step process after redirection to login route -


i'm creating app using ember.js. application allows book appointment @ doctor.

you have booking process few steps.

after step 1 (booking/start), have screen shows if user isn't connected (booking/user). on page, have 2 links: 1 login page, 1 registration page. steps "needs" booking controller.

the link login link next step (booking/confirmation), since user isn't logged in, he's automatically redirected login page authenticatedroutemixin. when log in, works fine, i'm connected , redirected booking/confirmation.

but, lose data booking controller. it's obvious, since login doesn't have connection booking controller.

i believe not pure ember simple auth question, more general ember.js question. have idea how should change login behavior keep data or change logic of app save data before going login page, retrieve on booking/confirmation?

my code available here: https://github.com/lionelrudaz/wellnow-frontend

let me know if need more information.

i found workaround. when enter process, create , save booking object, allowing me have id , save progress @ every steps.

if need more details, let me know.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -