Permalink
Browse files

add EJS title example to auth

  • Loading branch information...
1 parent 9edd8be commit a52b1f121c868c5009cb2f36814c6a3d4d0895c9 @tj tj committed Oct 10, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −4 examples/auth/app.js
  2. +2 −0 examples/auth/views/login.ejs
View
@@ -91,10 +91,7 @@ app.get('/logout', function(req, res){
});
app.get('/login', function(req, res){
- res.render('login', {
- title: "Authentication Example",
- user: req.session.user ? req.session.user.name : undefined
- });
+ res.render('login');
});
app.post('/login', function(req, res){
@@ -1,3 +1,5 @@
+
+<% var title = 'Authentication Example' %>
<% include head %>
<h1>Login</h1>

0 comments on commit a52b1f1

Please sign in to comment.