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
11095e36
Commit
11095e36
authored
Apr 27, 2020
by
Wolfgang Knopki
Browse files
routes security adapted
parent
9553d0a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
routes/routes-account.js
View file @
11095e36
...
...
@@ -288,13 +288,13 @@ module.exports = function (app, config, passport, i18n) {
//req.flash('error', "Sorry, your password was incorrect. Please double-check your password.")
req
.
flash
(
'
error
'
,
"
Das Passwort ist leider falsch. Bitte überprüfen Sie Ihre Eingabe.
"
)
//res.redirect('/security')
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.")
req
.
flash
(
'
error
'
,
'
Passwörter stimmen nicht überein. Bitte stellen Sie sicher, dass Sie das Passwort beide Male genau gleich eingeben.
'
)
res
.
redirect
(
'
/security
'
)
res
.
redirect
(
'
/
account/
security
'
)
}
else
{
// update password
...
...
@@ -323,7 +323,7 @@ module.exports = function (app, config, passport, i18n) {
}
});
}
res
.
redirect
(
'
/security
'
)
res
.
redirect
(
'
/
account/
security
'
)
})
});
});
...
...
views/DE/account/security.pug
View file @
11095e36
...
...
@@ -50,7 +50,7 @@ html(lang="de")
for error, i in errors
div.alert.alert-danger.alert-dismissible.fade.show #{ error }
a(class="close", href="#", data-dismiss="alert", aria-label="close") ×
form(class="needs-validation", method="post", action="/changePwd" novalidate)
form(class="needs-validation", method="post", action="/
account/
changePwd" novalidate)
div(class="form-group row")
label(for="currPwd") Aktuelles Passwort
input(id="inputCurrPwd", name="inputCurrPwd", type="password", class="form-control" required)
...
...
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