Commit 11095e36 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

routes security adapted

parent 9553d0a6
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
Showing with 4 additions and 4 deletions
+4 -4
......@@ -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')
})
});
});
......
......@@ -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)
......
Supports Markdown
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