|
|
@ -57,8 +57,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
router.get(strategy.callbackURL, passport.authenticate(strategy.name, {
|
|
|
|
router.get(strategy.callbackURL, passport.authenticate(strategy.name, {
|
|
|
|
successReturnToOrRedirect: nconf.get('relative_path') + '/',
|
|
|
|
successReturnToOrRedirect: nconf.get('relative_path') + (strategy.successUrl !== undefined ? strategy.successUrl : '/'),
|
|
|
|
failureRedirect: nconf.get('relative_path') + '/login'
|
|
|
|
failureRedirect: nconf.get('relative_path') + (strategy.failureUrl !== undefined ? strategy.failureUrl : '/login')
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|