From 0b885ec326a35b87fd2085c384324f0247b78247 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Wed, 11 Dec 2019 10:42:28 +0100 Subject: [PATCH] urls adapted --- config/config.js | 4 ++-- routes/routes.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.js b/config/config.js index bdfbd5a1..1d40a39a 100644 --- a/config/config.js +++ b/config/config.js @@ -20,8 +20,8 @@ module.exports = { user: 'DBManager', // DB username password: 'Stuttgart2019', // DB password port: 3306, // MySQL port - dbUser: 'userdb', // User DB - dbProject: 'projectdb' // Project DB + dbUser: 'userDB', // User DB + dbProject: 'projectDB' // Project DB }, mailer: { host: 'mail.hft-stuttgart.de', // hostname diff --git a/routes/routes.js b/routes/routes.js index d4090043..64cfe7b6 100644 --- a/routes/routes.js +++ b/routes/routes.js @@ -274,12 +274,12 @@ module.exports = function (app, config, passport) { } else if (!isMatch) { req.flash('error', "Sorry, your password was incorrect. Please double-check your password.") - res.redirect('/security') + res.redirect('/account/security') } else { if ( newPwd != retypePwd ) { req.flash('error', "Passwords do no match. Please make sure you re-type your new password correctly.") - res.redirect('/security') + res.redirect('/account/security') } else { // update password @@ -298,7 +298,7 @@ module.exports = function (app, config, passport) { req.flash('success', "Pasword updated!") console.log('pasword updated!') } - res.redirect('/security') + res.redirect('/account/security') }) }); }); @@ -464,7 +464,7 @@ module.exports = function (app, config, passport) { else { req.flash('success', 'Your account has been created. Please log in.'); } - res.redirect('/registration'); + res.redirect('/account/registration'); }) }); }); -- GitLab