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
This commit is contained in:
mrugesh mohapatra
2018-04-13 20:18:10 +05:30
committed by Stuart Taylor
parent d6f217c1b9
commit a2076ce1ec
9 changed files with 32 additions and 17 deletions

View File

@ -234,7 +234,7 @@ module.exports = function(User) {
throw wrapHandledError(
new Error('user already exists'),
{
redirectTo: '/email-signin',
redirectTo: '/signin',
message: dedent`
The ${user.email} email address is already associated with an account.
Try signing in with it here instead.