Skip to content

Commit

Permalink
add EJS title example to auth
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 10, 2012
1 parent 9edd8be commit a52b1f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions examples/auth/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
2 changes: 2 additions & 0 deletions examples/auth/views/login.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

<% var title = 'Authentication Example' %>
<% include head %>

<h1>Login</h1>
Expand Down

0 comments on commit a52b1f1

Please sign in to comment.