mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Adding Toggle Email
EMail toggling added to the pool authed zones Fixes #41
This commit is contained in:
+1
-1
@@ -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'});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user