add LEGACY_AUTH env variable (#1473)

This commit is contained in:
jeffvli
2026-01-01 20:33:27 -08:00
parent aaf840d358
commit 55cead87c8
8 changed files with 20 additions and 7 deletions
@@ -52,6 +52,7 @@ const LoginRoute = () => {
const serverType = window.SERVER_TYPE ? toServerType(window.SERVER_TYPE) : null;
const serverName = window.SERVER_NAME || '';
const serverUrl = window.SERVER_URL || '';
const legacyAuth = isServerLock ? Boolean(window.LEGACY_AUTHENTICATION) || false : false;
const config = [
{
@@ -122,7 +123,7 @@ const LoginRoute = () => {
const data: AuthenticationResponse | undefined = await authFunction(
serverUrl,
{
legacy: false,
legacy: legacyAuth,
password: values.password,
username: values.username,
},