diff --git a/routes/routes-account.js b/routes/routes-account.js index b3bbc5e8efd506e0cd7ee04aafef1e8dce915b12..48de0f0f1924a61724446b2d3c0d904e7a989710 100644 --- a/routes/routes-account.js +++ b/routes/routes-account.js @@ -268,22 +268,20 @@ module.exports = function (app, config, passport, i18n) { // Load hashed passwd from DB dbconn.user.query('SELECT password FROM credential WHERE user_id='+userId, function (err, rows, fields) { if (err) { - //res.redirect('/500') + console.error(err) res.status(500).render(lang+'/500', { error: err }) - throw err } var userPwd = rows[0].password // check if the password is correct bcrypt.compare(currPwd, userPwd, function(err, isMatch) { if (err) { - //res.redirect('/500') + console.error(err) res.status(500).render(lang+'/500', { error: err }) - throw err } else if (!isMatch) { //req.flash('error', "Sorry, your password was incorrect. Please double-check your password.") diff --git a/views/DE/404.pug b/views/DE/404.pug index a0a6044adff110aed8abf6f91b57a06dfdbb3fa0..c4178253b9cec40907906ccd33fc39ac6e85c990 100644 --- a/views/DE/404.pug +++ b/views/DE/404.pug @@ -25,6 +25,6 @@ html(lang="de") img(src="https://transfer.hft-stuttgart.de/images/demo/m4lab_logo.jpg", class="img-responsive center-block", width="185", height="192") br br - p 404. The requested URL was not found. + p(class="h5") 404. The requested URL was not found. // Bootstrap script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous") \ No newline at end of file diff --git a/views/DE/500.pug b/views/DE/500.pug index 9614b9ed86070011b102015a50993dce86a8b419..704573397c7252fc0a8034428da47602afa9b994 100644 --- a/views/DE/500.pug +++ b/views/DE/500.pug @@ -25,7 +25,7 @@ html(lang="de") img(src="https://transfer.hft-stuttgart.de/images/demo/m4lab_logo.jpg", class="img-responsive center-block", width="185", height="192") br br - p 500. Unexpected Error :( + p(class="h5") 500. Unexpected Error :( p #{ error } // Bootstrap script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous") \ No newline at end of file