Update expressRoutes.js

This commit is contained in:
kritikumarb 2020-04-04 00:39:36 +05:30 committed by GitHub
parent f73e2e474b
commit c77ac8a8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ routes.post('/changepass', isAllowed, (req, res) => {
else
{
let password = crypto.createHash('md5').update(req.query.pass).digest("hex");
db.maindb.get('admin').assign({ password }).write();
db.maindb.get('admin').assign({ passwor }).write();
res.send("200");
}
});
@ -152,4 +152,4 @@ routes.post('/manage/:deviceid/GPSPOLL/:speed', isAllowed, (req, res) => {
});
});
module.exports = routes;
module.exports = routes;