Skip to content

Commit

Permalink
getting closer for sure
Browse files Browse the repository at this point in the history
  • Loading branch information
Angela Evans committed Sep 23, 2015
1 parent bafb441 commit 6241ca9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Node.js Getting Started",
"description": "A barebones Node.js app using Express 4",
"name": "Phishing Test App",
"description": "An internal test for employees to guage weakness to phishing scams.",
"repository": "https://github.com/heroku/node-js-getting-started",
"logo": "http://node-js-sample.herokuapp.com/node.svg",
"keywords": ["node", "express", "static"],
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ app.post('/store', function(req, res){
client.query('INSERT INTO caught_users(id, email, password) values($1, $2, $3)', [0, email, password], function(err, result) {
done();
if (err)
{ console.error(err); res.render('pages/oops'); }
{ console.error(err); res.render('pages/db'); }
else
{ console.log("should render here?");res.render('pages/oops'); }
{ console.log("should render here?"); res.render('pages/db'); }
});
});
});
Expand Down
1 change: 1 addition & 0 deletions views/pages/db.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<% include ../partials/header.ejs %>
</head>

<body>
Expand Down

0 comments on commit 6241ca9

Please sign in to comment.