Commit 3f876403 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

token reset passwd

parent e23a1d2d
module.exports = { module.exports = {
development: { development: {
app: { app: {
hostname: 'm4lab.hft-stuttgart.de/account/', hostname: 'm4lab.hft-stuttgart.de/account',
name: 'User Account Management', name: 'User Account Management',
hostname: 'm4lab.hft-stuttgart.de/account', hostname: 'm4lab.hft-stuttgart.de/account',
port: process.env.PORT || 9989 port: process.env.PORT || 9989
......
...@@ -394,6 +394,7 @@ module.exports = function (app, config, passport) { ...@@ -394,6 +394,7 @@ module.exports = function (app, config, passport) {
}); });
app.post('/reset/:token', function(req, res) { app.post('/reset/:token', function(req, res) {
var newPwd = req.body.inputNewPwd
methods.checkUserToken(req.params.token, function(err, user){ methods.checkUserToken(req.params.token, function(err, user){
if (user) { if (user) {
// encrypt password // encrypt password
......
Markdown is supported
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