Giter VIP home page Giter VIP logo

Comments (4)

bnoguchi avatar bnoguchi commented on May 20, 2024

For layout, there is a configurable similar to loginView called loginLayout. Likewise, you can configure registerLayout.

To pass locals to a template, you can configure loginLocals and registerLocals. This locals object literal will get passed to the render call, if you are using express.

Redirect if the user is already logged in should occur automatically.

from everyauth.

niftylettuce avatar niftylettuce commented on May 20, 2024

Redirect if already logged in when visiting the /login route doesn't seem to be working, at least with mongoose-auth?

Can you try duplicating this error on your end?

from everyauth.

jleibund avatar jleibund commented on May 20, 2024

Are everyauth or mongoose internally tied to jade? Was thinking of swapping out jade for another engine in express - maybe node-jqtpl. Paging through the everyauth/mongoose libraries there seem to be several dependencies on jade - in package.json and in several routes that refer to 'new.jade' and other wiring in the login/reg workflow. Know docs say, in theory, that this can be used with other template engines, but does it actually work without jade there or registered in express (you can only pick one, correct?). Sorry if this is a noob question.

from everyauth.

niftylettuce avatar niftylettuce commented on May 20, 2024

I'm sure you can use everyauth with jqtpl, ejs, eco, or any other templating engine you'd like! Read the docs per whichever templating engine you'd like to use, and then incorporate it where necessary. If you need help with a particular engine, say jqtpl, then post your code using a gist in a new issue and we'll help you in the right direction.

from everyauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.