From a2076ce1ec96e5c333964f20dc20cc9621501f37 Mon Sep 17 00:00:00 2001 From: mrugesh mohapatra Date: Fri, 13 Apr 2018 20:18:10 +0530 Subject: [PATCH] fix(auth): on-boarding, signup and welcome flows (#16882) * fix(auth): Route should have specific targets * fix(signup): Redirection should be to signup Closes #16945 * feat(redirect): All fallback redirects to signin * fix: send back to originating route * fix(server,secrets): Specify profile field for LinkedIn provider. * fix(profile): Add route to react profile page --- common/app/routes/Profile/index.js | 2 +- common/app/routes/Settings/Settings.jsx | 2 +- common/models/user.js | 2 +- config/secrets.js | 1 + server/boot/authentication.js | 32 ++++++++++++++------- server/boot/react.js | 2 +- server/passport-providers.js | 4 ++- server/views/account/deprecated-signin.jade | 2 +- server/views/partials/navbar.jade | 2 +- 9 files changed, 32 insertions(+), 17 deletions(-) diff --git a/common/app/routes/Profile/index.js b/common/app/routes/Profile/index.js index 2ae2f541bf8..ad70ccbc649 100644 --- a/common/app/routes/Profile/index.js +++ b/common/app/routes/Profile/index.js @@ -3,5 +3,5 @@ import { types } from './redux'; export { default } from './Profile.jsx'; export const routes = { - [types.onRouteProfile]: '/:username' + [types.onRouteProfile]: '/portfolio/:username' }; diff --git a/common/app/routes/Settings/Settings.jsx b/common/app/routes/Settings/Settings.jsx index 6b6389254ef..7b56e3fa78e 100644 --- a/common/app/routes/Settings/Settings.jsx +++ b/common/app/routes/Settings/Settings.jsx @@ -89,7 +89,7 @@ export class Settings extends React.Component { return (
- +