Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect after login from protected route is broken #31

Open
todda00 opened this issue Feb 26, 2016 · 0 comments
Open

Redirect after login from protected route is broken #31

todda00 opened this issue Feb 26, 2016 · 0 comments

Comments

@todda00
Copy link

todda00 commented Feb 26, 2016

I have all routes protected except user account routes as follows:

FlowRouter.triggers.enter([AccountsTemplates.ensureSignedIn],{except: ['atSignIn', 'atForgotPwd', 'atResetPwd', 'atEnrollAccount']});

When presented with the login form by going to a protected route, then signing in, a blank page is shown with the following console error:

Error: FlowRouter.redirect is not a function
TypeError: FlowRouter.redirect is not a function
    at AccountsTemplates.postSubmitRedirect (client.js:130)
    at AccountsTemplates.submitCallback (client.js:221)
    at at_pwd_form.js:174
    at Accounts.callLoginMethod.userCallback (password_client.js:59)
    at accounts_client.js:195
    at underscore.js:750
    at loggedInAndDataReadyCallback (accounts_client.js:306)

If I go to the login form route directly and login, then I get directed to the home page as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant