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
0b885ec3
Commit
0b885ec3
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
urls adapted
parent
f487c809
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.js
+2
-2
config/config.js
routes/routes.js
+4
-4
routes/routes.js
with
6 additions
and
6 deletions
+6
-6
config/config.js
+
2
-
2
View file @
0b885ec3
...
@@ -20,8 +20,8 @@ module.exports = {
...
@@ -20,8 +20,8 @@ module.exports = {
user
:
'
DBManager
'
,
// DB username
user
:
'
DBManager
'
,
// DB username
password
:
'
Stuttgart2019
'
,
// DB password
password
:
'
Stuttgart2019
'
,
// DB password
port
:
3306
,
// MySQL port
port
:
3306
,
// MySQL port
dbUser
:
'
user
db
'
,
// User DB
dbUser
:
'
user
DB
'
,
// User DB
dbProject
:
'
project
db
'
// Project DB
dbProject
:
'
project
DB
'
// Project DB
},
},
mailer
:
{
mailer
:
{
host
:
'
mail.hft-stuttgart.de
'
,
// hostname
host
:
'
mail.hft-stuttgart.de
'
,
// hostname
...
...
This diff is collapsed.
Click to expand it.
routes/routes.js
+
4
-
4
View file @
0b885ec3
...
@@ -274,12 +274,12 @@ module.exports = function (app, config, passport) {
...
@@ -274,12 +274,12 @@ module.exports = function (app, config, passport) {
}
}
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.
"
)
res
.
redirect
(
'
/security
'
)
res
.
redirect
(
'
/
account/
security
'
)
}
}
else
{
else
{
if
(
newPwd
!=
retypePwd
)
{
if
(
newPwd
!=
retypePwd
)
{
req
.
flash
(
'
error
'
,
"
Passwords do no match. Please make sure you re-type your new password correctly.
"
)
req
.
flash
(
'
error
'
,
"
Passwords do no match. Please make sure you re-type your new password correctly.
"
)
res
.
redirect
(
'
/security
'
)
res
.
redirect
(
'
/
account/
security
'
)
}
}
else
{
else
{
// update password
// update password
...
@@ -298,7 +298,7 @@ module.exports = function (app, config, passport) {
...
@@ -298,7 +298,7 @@ module.exports = function (app, config, passport) {
req
.
flash
(
'
success
'
,
"
Pasword updated!
"
)
req
.
flash
(
'
success
'
,
"
Pasword updated!
"
)
console
.
log
(
'
pasword updated!
'
)
console
.
log
(
'
pasword updated!
'
)
}
}
res
.
redirect
(
'
/security
'
)
res
.
redirect
(
'
/
account/
security
'
)
})
})
});
});
});
});
...
@@ -464,7 +464,7 @@ module.exports = function (app, config, passport) {
...
@@ -464,7 +464,7 @@ module.exports = function (app, config, passport) {
else
{
else
{
req
.
flash
(
'
success
'
,
'
Your account has been created. Please log in.
'
);
req
.
flash
(
'
success
'
,
'
Your account has been created. Please log in.
'
);
}
}
res
.
redirect
(
'
/registration
'
);
res
.
redirect
(
'
/
account/
registration
'
);
})
})
});
});
});
});
...
...
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