I am looking to create different registration pages for different groups in express-stormpath. For example:
router.get('/new', stormpath.groupsRequired(['Merchants']), function(req, res){
//this would render a signup for merchants if a merchant wasn't signed in
});
router.get('/new', stormpath.groupsRequired(['customers']), function(req, res){
//this would render a signup for customer if a customer wasn't signed in
});
I have read through the docs but haven't had any luck, how do I do this?