Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dylan Fixing Issues
  • Loading branch information
Dylan Kruger committed Mar 10, 2024
commit bb0e58b245907a5ed4cfdca1be4f08c32d49b0bb
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ app.locals.marked = marked;
if (app.get('env') == 'development') {
app.use(errorHandler());
}

/** Introduce Token
var token = 'SECRET_TOKEN_f8ed84e8f41e4146403dd4a6bbcea5e418d23a9';
console.log('token: ' + token);

*/
http.createServer(app).listen(app.get('port'), function () {
console.log('Express server listening on port ' + app.get('port'));
});
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports.loginHandler = function (req, res, next) {
}
};
// Insert new vuln
/*

if (validator.isEmail(req.body.username)) {
User.find({ username: req.body.username, password: req.body.password }, function (err, users) {
if (users.length > 0) {
Expand All @@ -66,7 +66,7 @@ if (validator.isEmail(req.body.username)) {
} else {
return res.status(401).send()
};
*/

function adminLoginSuccess(redirectPage, session, username, res) {
session.loggedIn = 1

Expand Down