mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
license checking
This commit is contained in:
@@ -41,6 +41,10 @@ export function handleOauthCallback() {
|
||||
}
|
||||
|
||||
export async function handleAuthOnStartup(config, isAdminPage = false) {
|
||||
if (!config.isLicenseValid) {
|
||||
internalRedirectTo(`?page=error`);
|
||||
}
|
||||
|
||||
if (config.isAdminLoginForm && isAdminPage) {
|
||||
if (localStorage.getItem('adminAccessToken')) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user