mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 01:26:01 +00:00
SYNC: check licensed user count
This commit is contained in:
committed by
Diflow
parent
4548f5d8aa
commit
9795740257
@@ -78,6 +78,8 @@ function authMiddleware(req, res, next) {
|
||||
try {
|
||||
const decoded = jwt.verify(token, getTokenSecret());
|
||||
req.user = decoded;
|
||||
storage.markUserAsActive(decoded.licenseUid);
|
||||
|
||||
return next();
|
||||
} catch (err) {
|
||||
if (skipAuth) {
|
||||
|
||||
Reference in New Issue
Block a user