Commit 9a611a58 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

fix routing mistake

parent 8bc104d8
...@@ -253,7 +253,7 @@ module.exports = function (app, config, passport, i18n) { ...@@ -253,7 +253,7 @@ module.exports = function (app, config, passport, i18n) {
else { else {
req.flash('success', 'Profile updated!'); req.flash('success', 'Profile updated!');
} }
res.redirect('lang+/account/profile'); res.redirect('/profile');
}) })
} }
} else { } else {
...@@ -292,7 +292,7 @@ module.exports = function (app, config, passport, i18n) { ...@@ -292,7 +292,7 @@ module.exports = function (app, config, passport, i18n) {
else { else {
if ( newPwd != retypePwd ) { if ( newPwd != retypePwd ) {
req.flash('error', "Passwords do no match. Please make sure you re-type your new password correctly.") req.flash('error', "Passwords do no match. Please make sure you re-type your new password correctly.")
res.redirect(lang+'/account/security') res.redirect('/security')
} }
else { else {
// update password // update password
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment