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
d82e8324
Commit
d82e8324
authored
Mar 20, 2020
by
Wolfgang Knopki
Browse files
merged devel
parents
731ca04c
9a611a58
Changes
5
Hide whitespace changes
Inline
Side-by-side
routes/routes-account.js
View file @
d82e8324
...
@@ -286,7 +286,7 @@ module.exports = function (app, config, passport, i18n) {
...
@@ -286,7 +286,7 @@ module.exports = function (app, config, passport, i18n) {
else
if
(
!
isMatch
)
{
else
if
(
!
isMatch
)
{
//req.flash('error', "Sorry, your password was incorrect. Please double-check your password.")
//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.
"
)
req
.
flash
(
'
error
'
,
"
Das Passwort ist leider falsch. Bitte überprüfen Sie Ihre Eingabe.
"
)
//res.redirect('/
account/
security')
//res.redirect('/security')
res
.
redirect
(
'
/account/security
'
)
res
.
redirect
(
'
/account/security
'
)
}
}
else
{
else
{
...
@@ -408,7 +408,7 @@ module.exports = function (app, config, passport, i18n) {
...
@@ -408,7 +408,7 @@ module.exports = function (app, config, passport, i18n) {
//req.flash('success', 'If your email is registered, an e-mail has been sent to ' + emailAddress + ' with further instructions.');
//req.flash('success', 'If your email is registered, an e-mail has been sent to ' + emailAddress + ' with further instructions.');
req
.
flash
(
'
success
'
,
'
Wenn Ihre E-Mail-Adresse registriert ist, wurde eine E-Mail mit dem weiteren Vorgehen an
'
+
emailAddress
+
'
versendet.
'
);
req
.
flash
(
'
success
'
,
'
Wenn Ihre E-Mail-Adresse registriert ist, wurde eine E-Mail mit dem weiteren Vorgehen an
'
+
emailAddress
+
'
versendet.
'
);
}
}
//res.redirect('/
account/
forgotPwd'); // deployment
//res.redirect('/forgotPwd'); // deployment
res
.
redirect
(
'
/account/forgotPwd
'
);
// localhost
res
.
redirect
(
'
/account/forgotPwd
'
);
// localhost
});
});
});
});
...
@@ -418,7 +418,7 @@ module.exports = function (app, config, passport, i18n) {
...
@@ -418,7 +418,7 @@ module.exports = function (app, config, passport, i18n) {
if
(
!
user
)
{
if
(
!
user
)
{
//req.flash('error', 'Password reset token is invalid or has expired.');
//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.
'
);
req
.
flash
(
'
error
'
,
'
Der Schlüssel zum zurücksetzen des Passworts ist ungültig oder abgelaufen.
'
);
//res.redirect('/
account/
forgotPwd'); // deployment
//res.redirect('/forgotPwd'); // deployment
res
.
redirect
(
'
/account/forgotPwd
'
);
// localhost
res
.
redirect
(
'
/account/forgotPwd
'
);
// localhost
}
}
else
{
else
{
...
@@ -428,7 +428,7 @@ module.exports = function (app, config, passport, i18n) {
...
@@ -428,7 +428,7 @@ module.exports = function (app, config, passport, i18n) {
});
});
app
.
post
(
'
/reset/:token
'
,
function
(
req
,
res
)
{
app
.
post
(
'
/reset/:token
'
,
function
(
req
,
res
)
{
var
newPwd
=
req
.
body
.
inputNewPwd
var
newPwd
=
req
.
body
.
inputNewPwd
methods
.
getUserByToken
(
req
.
params
.
token
,
function
(
err
,
user
){
methods
.
getUserByToken
(
req
.
params
.
token
,
function
(
err
,
user
){
if
(
user
)
{
if
(
user
)
{
// encrypt password
// encrypt password
...
...
views/DE/account/home.pug
View file @
d82e8324
...
@@ -34,9 +34,9 @@ html(lang="de")
...
@@ -34,9 +34,9 @@ html(lang="de")
h5
h5
span #{user.firstname} #{user.lastname}
span #{user.firstname} #{user.lastname}
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
a(class="nav-link" href="/
account/
profile" aria-selected="true") Benutzerprofil
a(class="nav-link" href="/profile" aria-selected="true") Benutzerprofil
a(class="nav-link" href="/
account/
security" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="/security" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="/
account/
services" aria-selected="false") Projekte und Dienste
a(class="nav-link" href="/services" aria-selected="false") Projekte und Dienste
div(class="col-sm-9")
div(class="col-sm-9")
p content goes here
p content goes here
...
...
views/DE/account/profile.pug
View file @
d82e8324
...
@@ -35,8 +35,8 @@ html(lang="de")
...
@@ -35,8 +35,8 @@ html(lang="de")
span #{user.firstname} #{user.lastname}
span #{user.firstname} #{user.lastname}
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
a(class="nav-link" href="#" aria-selected="true") Benutzerprofil
a(class="nav-link" href="#" aria-selected="true") Benutzerprofil
a(class="nav-link" href="/
account/
security" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="/security" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="/
account/
services" aria-selected="false") Projekte und Dienste
a(class="nav-link" href="/services" aria-selected="false") Projekte und Dienste
div(class="col-sm-9")
div(class="col-sm-9")
if successes
if successes
for success in successes
for success in successes
...
...
views/DE/account/security.pug
View file @
d82e8324
...
@@ -37,9 +37,9 @@ html(lang="de")
...
@@ -37,9 +37,9 @@ html(lang="de")
h5
h5
span #{user.firstName} #{user.lastName}
span #{user.firstName} #{user.lastName}
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
a(class="nav-link" href="/
account/
profile" aria-selected="true") Benutzerprofil
a(class="nav-link" href="/profile" aria-selected="true") Benutzerprofil
a(class="nav-link" href="#" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="#" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="/
account/
services" aria-selected="false") Projekte und Dienste
a(class="nav-link" href="/services" aria-selected="false") Projekte und Dienste
div(class="col-sm-9")
div(class="col-sm-9")
if successes
if successes
for success in successes
for success in successes
...
...
views/DE/account/services.pug
View file @
d82e8324
...
@@ -34,8 +34,8 @@ html(lang="de")
...
@@ -34,8 +34,8 @@ html(lang="de")
h5
h5
span #{user.firstName} #{user.lastName}
span #{user.firstName} #{user.lastName}
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
div(class="nav flex-column nav-pills", id="v-pills-tab", role="tablist", aria-orientation="vertical")
a(class="nav-link" href="/
account/
profile" aria-selected="true") Benutzerprofil
a(class="nav-link" href="/profile" aria-selected="true") Benutzerprofil
a(class="nav-link" href="/
account/
security" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="/security" aria-selected="false") Sicherheitseinstellungen
a(class="nav-link" href="#" aria-selected="false") Projekte und Dienste
a(class="nav-link" href="#" aria-selected="false") Projekte und Dienste
div(class="col-sm-9")
div(class="col-sm-9")
if successes
if successes
...
...
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