Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
9553d0a6
Commit
9553d0a6
authored
4 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
routes adapted
parent
eb1653c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
routes/routes-account.js
+4
-4
routes/routes-account.js
views/DE/account/registration.pug
+1
-1
views/DE/account/registration.pug
with
5 additions
and
5 deletions
+5
-5
routes/routes-account.js
+
4
-
4
View file @
9553d0a6
...
...
@@ -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
'
);
//
localhos
t
res
.
redirect
(
'
/
account/
forgotPwd
'
);
//
deploymen
t
}
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
'
);
})
});
});
...
...
This diff is collapsed.
Click to expand it.
views/DE/account/registration.pug
+
1
-
1
View file @
9553d0a6
...
...
@@ -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')
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets