Adding Toggle Email
EMail toggling added to the pool authed zones Fixes #41
This commit is contained in:
parent
519f472666
commit
44f6391a6b
1 changed files with 1 additions and 1 deletions
|
|
@ -499,7 +499,7 @@ secureRoutes.post('/changePassword', function (req, res) {
|
|||
});
|
||||
|
||||
secureRoutes.post('/toggleEmail', function (req, res) {
|
||||
global.mysql.query("UPDATE users SET enable_email = NOT enable_email WHERE id = ?", [hmac, req.decoded.id]).then(function () {
|
||||
global.mysql.query("UPDATE users SET enable_email = NOT enable_email WHERE id = ?", [req.decoded.id]).then(function () {
|
||||
return res.json({'msg': 'Email toggled'});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue