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
3f876403
Commit
3f876403
authored
Dec 09, 2019
by
Wolfgang Knopki
Browse files
token reset passwd
parent
e23a1d2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/config.js
View file @
3f876403
module
.
exports
=
{
development
:
{
app
:
{
hostname
:
'
m4lab.hft-stuttgart.de/account
/
'
,
hostname
:
'
m4lab.hft-stuttgart.de/account
'
,
name
:
'
User Account Management
'
,
hostname
:
'
m4lab.hft-stuttgart.de/account
'
,
port
:
process
.
env
.
PORT
||
9989
...
...
routes/routes.js
View file @
3f876403
...
...
@@ -394,6 +394,7 @@ module.exports = function (app, config, passport) {
});
app
.
post
(
'
/reset/:token
'
,
function
(
req
,
res
)
{
var
newPwd
=
req
.
body
.
inputNewPwd
methods
.
checkUserToken
(
req
.
params
.
token
,
function
(
err
,
user
){
if
(
user
)
{
// encrypt password
...
...
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