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

noAuth component not working as expected #41

Open
briceicle opened this issue Mar 19, 2019 · 0 comments
Open

noAuth component not working as expected #41

briceicle opened this issue Mar 19, 2019 · 0 comments

Comments

@briceicle
Copy link

I'm requiring derby-login components like so in my app app.use(require('derby-login/components/noAuth'));.

In my templates, I use the views <view is="auth:login"></view> and <view is="auth:register"></view>, but when I click the login or register buttons it always calls the resetpassword route and I get an error on the front-end: "secret field missing".

I don't know if this is because resetpassword is the last component being loaded in noAuth and overwrites all of the other components:

module.exports = function(app, options) {
  app.component(require('./login'));
  app.component(require('./recoverPassword'));
  app.component(require('./register'));
  app.component(require('./resetPassword'));
};

derby version: ^0.10.3

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