Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add EJS title example to auth

  • Loading branch information...
commit a52b1f121c868c5009cb2f36814c6a3d4d0895c9 1 parent 9edd8be
@tj tj authored
Showing with 3 additions and 4 deletions.
  1. +1 −4 examples/auth/app.js
  2. +2 −0  examples/auth/views/login.ejs
View
5 examples/auth/app.js
@@ -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){
View
2  examples/auth/views/login.ejs
@@ -1,3 +1,5 @@
+
+<% var title = 'Authentication Example' %>
<% include head %>
<h1>Login</h1>
Please sign in to comment.
Something went wrong with that request. Please try again.