Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
9a611a58
Commit
9a611a58
authored
Mar 19, 2020
by
Rosanny Sihombing
Browse files
fix routing mistake
parent
8bc104d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/routes-account.js
View file @
9a611a58
...
...
@@ -253,7 +253,7 @@ module.exports = function (app, config, passport, i18n) {
else
{
req
.
flash
(
'
success
'
,
'
Profile updated!
'
);
}
res
.
redirect
(
'
lang+/account
/profile
'
);
res
.
redirect
(
'
/profile
'
);
})
}
}
else
{
...
...
@@ -292,7 +292,7 @@ module.exports = function (app, config, passport, i18n) {
else
{
if
(
newPwd
!=
retypePwd
)
{
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
{
// update password
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment