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

token reset passwd

parent e23a1d2d
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
......
......@@ -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
......
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