Commit 9553d0a6 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

routes adapted

parent eb1653c3
This commit is part of merge request !31. Comments created here will be created in the context of that merge request.
Showing with 5 additions and 5 deletions
+5 -5
......@@ -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