config error detection

This commit is contained in:
Jan Prochazka
2024-08-08 09:46:42 +02:00
parent 47729d8cc3
commit a9352f2a93
4 changed files with 11 additions and 2 deletions

View File

@@ -28,6 +28,8 @@
<ErrorInfo
message={`Invalid license. Please contact sales@dbgate.eu for more details. ${$config?.checkedLicense?.error}`}
/>
{:else if $config?.configurationError}
<ErrorInfo message={$config?.configurationError} />
{:else if error}
<ErrorInfo message={error} />
{:else}

View File

@@ -113,7 +113,7 @@ export function handleOauthCallback() {
}
export async function handleAuthOnStartup(config, isAdminPage = false) {
if (!config.isLicenseValid) {
if (!config.isLicenseValid || config.configurationError) {
internalRedirectTo(`/?page=error`);
return;
}