reset_counter in user hinterlegt
This commit is contained in:
parent
b1e80e6920
commit
ce701dd809
@ -77,7 +77,9 @@ module.exports = function(app, app_cfg, db, async, bcrypt, passport, io) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
passport.deserializeUser(function(id, done) {
|
passport.deserializeUser(function(id, done) {
|
||||||
db.get('SELECT id, user, permissions FROM waip_users WHERE id = ?', id, function(err, row) {
|
db.get(`SELECT id, user, permissions,
|
||||||
|
(select reset_counter from waip_configs where user_id = ?) reset_counter
|
||||||
|
FROM waip_users WHERE id = ?`, [id, id], function(err, row) {
|
||||||
if (!row) {
|
if (!row) {
|
||||||
return done(null, false);
|
return done(null, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user