Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Add postVerificationHandler #6

Open
stevebread opened this issue Jun 15, 2015 · 5 comments
Open

Add postVerificationHandler #6

stevebread opened this issue Jun 15, 2015 · 5 comments

Comments

@stevebread
Copy link

It would be useful to have a postVerificationHandler callback to perform account related tasks that should occur when a new account is created. postRegistrationHandler can be used as an alternative but for some things post-verification would be the right time.

@rdegges
Copy link
Contributor

rdegges commented Jun 21, 2015

Will definitely add this =) Thanks for the suggestion!

@mody25egy
Copy link

Is there a way that i can do postLoginHandler?
The problem I am trying to solve that I want users to be routed to different views based on their groups once they login in.

@rdegges
Copy link
Contributor

rdegges commented Aug 20, 2015

There is already a postLoginHandler you can use, @mody25egy: https://docs.stormpath.com/nodejs/express/product.html#post-login

@robertjd
Copy link
Member

@rdegges that's for the other library :)

@mody25egy - unfortunately I don't see a workaround to get a post login handler in this library :( if an idea comes to me, I'll let you know

Also: we're about to release a new version of the other library (coming in the next few biz days), and it might actually make sense to switch over to that one once it's ready. Can you tell me more about your use case for this library?

@mody25egy
Copy link

@rdegges - I was specifically asking to have the same feature as the other library you mentioned.

@robertjd - Man!!! I will be looking forward for the new updates in the other library "Express-Stormpath". The reason i am using this library "stormpath-sdk-express" because of the stormpath-sdk-angular library. I tried to use it with Express-Stormpath but they didn't like each other that much :(.
I have no problem using the Express-Stormpath as long as I can make it work with the stormpath angular SDK.

My goal is redirect users to different views once they login based on their groups, example, Admin goes to the admin-dashboard view, sales to sales-dashboard view, etc..

In the angular sdk you have the defaultPostLoginState maybe we can do something like

PostLoginState:{
condition:{
group: 'Admin'
state:'AdminDashboard'

},
condition:{
group: 'Sales'
state:'SalesDashboard'
}
}

Any how thank you both for your prompt response and this amazing library 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants