feat: simplify landing page

This commit is contained in:
Ahmad Abdolsaheb
2019-09-01 17:20:53 +03:00
committed by Mrugesh Mohapatra
parent 5dd8044035
commit 9ff7bf5801
24 changed files with 350 additions and 1061 deletions

View File

@ -83,9 +83,9 @@ export const loginRedirect = () => {
const successRedirect = req => {
if (!!req && req.session && req.session.returnTo) {
delete req.session.returnTo;
return `${homeLocation}/welcome`;
return `${homeLocation}/`;
}
return `${homeLocation}/welcome`;
return `${homeLocation}/`;
};
let redirect = url.parse(successRedirect(req), true);
@ -112,7 +112,7 @@ export const createPassportCallbackAuthenticator = (strategy, config) => (
if (!user || !userInfo) {
return res.redirect('/signin');
}
const redirect = `${homeLocation}/welcome`;
const redirect = `${homeLocation}/`;
const { accessToken } = userInfo;
const { provider } = config;