mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 10:33:58 +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 {
|
try {
|
||||||
const decoded = jwt.verify(token, getTokenSecret());
|
const decoded = jwt.verify(token, getTokenSecret());
|
||||||
req.user = decoded;
|
req.user = decoded;
|
||||||
|
storage.markUserAsActive(decoded.licenseUid);
|
||||||
|
|
||||||
return next();
|
return next();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (skipAuth) {
|
if (skipAuth) {
|
||||||
|
|||||||
@@ -32,6 +32,11 @@
|
|||||||
: 'Community'}</span
|
: 'Community'}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
{#if $config?.checkedLicense?.users}
|
||||||
|
<div>
|
||||||
|
User count: <span>{$config?.checkedLicense?.users}</span>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<FontIcon icon="mdi mdi-web color-icon-blue" /> Web: <Link href="https://dbgate.io">dbgate.io</Link>
|
<FontIcon icon="mdi mdi-web color-icon-blue" /> Web: <Link href="https://dbgate.io">dbgate.io</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user