Skip to content

Commit 2be5855

Browse files
committed
added favicon
1 parent 1819093 commit 2be5855

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

app.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,20 @@ app.use(function (req, res, next) {
104104
});
105105
})(req, res, next);
106106
} else {
107-
// res.redirect(loginUrl);
107+
res.redirect(loginUrl);
108108
/** TODO: To be removed */
109-
var cookie = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3RvcGNvZGVyLmF1dGgwLmNvbS8iLCJzdWIiOiJnb29nbGUtb2F1dGgyfDExMTg1ODczMDE2NDUzMzY5OTI4NCIsImF1ZCI6IjZad1pFVW8yWks0YzUwYUxQcGd1cGVnNXYyRmZ4cDlQIiwiZXhwIjoxNzkwODU4MjQ2LCJpYXQiOjE0MzA4NTgyNDZ9.A3HeisoV92z70x1nXGQ7YhP_0qCuX3dSTA4jbhtF8wA';
110-
res.cookie('tcjwt', cookie, { maxAge: week, httpOnly: true });
111-
req.body.email = '[email protected]';
112-
req.body.password = ' ';
113-
passport.authenticate('local', function (err, user, info) {
114-
if (err) return next(err);
115-
req.logIn(user, function (err) {
116-
if (err) return next(err);
117-
next();
118-
});
119-
})(req, res, next);
120-
// end
109+
// var cookie = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3RvcGNvZGVyLmF1dGgwLmNvbS8iLCJzdWIiOiJnb29nbGUtb2F1dGgyfDExMTg1ODczMDE2NDUzMzY5OTI4NCIsImF1ZCI6IjZad1pFVW8yWks0YzUwYUxQcGd1cGVnNXYyRmZ4cDlQIiwiZXhwIjoxNzkwODU4MjQ2LCJpYXQiOjE0MzA4NTgyNDZ9.A3HeisoV92z70x1nXGQ7YhP_0qCuX3dSTA4jbhtF8wA';
110+
// res.cookie('tcjwt', cookie, { maxAge: week, httpOnly: true });
111+
// req.body.email = '[email protected]';
112+
// req.body.password = ' ';
113+
// passport.authenticate('local', function (err, user, info) {
114+
// if (err) return next(err);
115+
// req.logIn(user, function (err) {
116+
// if (err) return next(err);
117+
// next();
118+
// });
119+
// })(req, res, next);
120+
// end
121121
}
122122
});
123123

public/img/favicon.ico

1.12 KB
Binary file not shown.

views/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
<title>{{title}}</title>
88

9+
<!-- Favicon -->
10+
<link rel="shortcut icon" href="/img/favicon.ico">
11+
912
<!-- Custom Bootstrap + Stylesheets -->
1013
<link href="components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
1114
<link href="css/styles.css" rel="stylesheet" />

0 commit comments

Comments
 (0)