Commit d8bb1d4b authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

Merge branch 'MLAB-172' into 'testing'

routes adapted

See merge request !17
parents eb1653c3 9553d0a6
Pipeline #651 passed with stage
in 9 seconds
......@@ -250,7 +250,7 @@ module.exports = function (app, config, passport, i18n) {
//req.flash('success', 'Profile updated!');
req.flash('success', 'Ihr Benutzerprofil wurde aktualisiert!');
}
res.redirect('/profile');
res.redirect('/account/profile');
})
}
} else {
......@@ -411,7 +411,7 @@ module.exports = function (app, config, passport, i18n) {
req.flash('success', 'Wenn Ihre E-Mail-Adresse registriert ist, wurde eine E-Mail mit dem weiteren Vorgehen an ' + emailAddress + ' versendet.');
}
//res.redirect('/forgotPwd'); // deployment
res.redirect('/forgotPwd'); // localhost
res.redirect('/account/forgotPwd'); // localhost
});
});
......@@ -421,7 +421,7 @@ module.exports = function (app, config, passport, i18n) {
//req.flash('error', 'Password reset token is invalid or has expired.');
req.flash('error', 'Der Schlüssel zum zurücksetzen des Passworts ist ungültig oder abgelaufen.');
//res.redirect('/forgotPwd'); // deployment
res.redirect('/forgotPwd'); // localhost
res.redirect('/account/forgotPwd'); // deployment
}
else {
res.render(lang+'/account/reset');
......@@ -514,7 +514,7 @@ module.exports = function (app, config, passport, i18n) {
//req.flash('success', 'Your account has been created. Please log in.')
req.flash('success', 'Ihr Benutzerkonto wurde angelegt. Bitte melden Sie sich an.')
}
res.redirect('/registration');
res.redirect('/account/registration');
})
});
});
......
......@@ -45,7 +45,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(method="POST")
form(method="POST" target="/account/registration")
h5(class="mb-3 font-weight-bold") Anmeldedaten
div(class='form-row')
div(class='form-group col-md-6')
......
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