mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 19:04:23 +02:00
add LEGACY_AUTH env variable (#1473)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user