mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 00:23:57 +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) {
|
||||
|
||||
@@ -32,6 +32,11 @@
|
||||
: 'Community'}</span
|
||||
>
|
||||
</div>
|
||||
{#if $config?.checkedLicense?.users}
|
||||
<div>
|
||||
User count: <span>{$config?.checkedLicense?.users}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="mt-2">
|
||||
<FontIcon icon="mdi mdi-web color-icon-blue" /> Web: <Link href="https://dbgate.io">dbgate.io</Link>
|
||||
|
||||
Reference in New Issue
Block a user