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

ensureSignedIn #16

Open
peshi opened this issue Apr 10, 2016 · 4 comments
Open

ensureSignedIn #16

peshi opened this issue Apr 10, 2016 · 4 comments

Comments

@peshi
Copy link

peshi commented Apr 10, 2016

If I use the following plugin with Meteor 1.3.1

Router.plugin('ensureSignedIn', {
  only: ['dashboard']
});

I receive the following error.
Route dispatch never rendered. Did you forget to call this.next() in an onBeforeAction?

@tomscholz
Copy link

Did you forget to call this.next() in an onBeforeAction? :D

@lucasprag
Copy link

@peshi If you remove that code, does the error continue?

@peshi
Copy link
Author

peshi commented May 15, 2017

Great question, I haven't used Meteor/iron-routing since last year.
Thanks for pinging me, i'll revisit and check if this still is an issue.

@rootedsoftware
Copy link

If I remove the code the error does go away for me. Mine looks like this.

Router.plugin('ensureSignedIn', {
  except: [
    'donation.form',
    'donation.scheduled',
    'enrollAccount',
    'forgotPwd',
    'resetPwd',
    'signIn',
  ],
});

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

4 participants