routing with password authentication?
Opened this issue · 0 comments
Newbie question.
Adding password authentication to https://github.com/qed42/nodejs-express-mongoose-demo. [https://github.com/qed42/nodejs-express-mongoose-demo] Was able to add google and twitter authentication fine. Then added password authentication and that works fine -- except that the routing seems to have changed such that it can't find jade files to include.
There's a view /app/views/layouts/default.jade
which has the following code. The lines like '!= partial('../includes/head')
work fine before password authentication is added, but then break when it is. If I comment them out, authentication works.
I suspect that adding the password authentication changes the routing subtly, and I either need to specify something in the configuration, or change the relative references to more absolute ones. Hints? Thanks so much.
doctype transitional
html(xmlns='http://www.w3.org/1999/xhtml', lang="en", xml:lang="en")
!= partial('../includes/head')
body
#container
!= partial('../includes/header')
a(href="https://github.com/qed42/nodejs-express-mongoose-demo", title="fork me on github")
img(style="position: fixed; top: 0; right: 0; border: 0;", src="/images/fork-me.png", alt="Fork me on GitHub")
!= body
!= partial('../includes/foot')