From 2e197e508fc664f5f2174d86e2e7f964181c9ff7 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Sun, 29 Mar 2020 15:40:04 +0200 Subject: [PATCH] Add switch to login form for choosing well-know or given server address --- src/components/LoginPage.js | 12 +++++++++++- src/i18n/de.js | 1 + src/i18n/en.js | 1 + src/synapse/authProvider.js | 20 ++++++++++++++++---- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/components/LoginPage.js b/src/components/LoginPage.js index 19280b3..a720904 100644 --- a/src/components/LoginPage.js +++ b/src/components/LoginPage.js @@ -6,6 +6,7 @@ import { useLocale, useSetLocale, useTranslate, + BooleanInput, } from "react-admin"; import { Field, Form } from "react-final-form"; import { @@ -71,6 +72,7 @@ const LoginPage = ({ theme }) => { const setLocale = useSetLocale(); const translate = useTranslate(); const homeserver = localStorage.getItem("base_url"); + const force_server = localStorage.getItem("force_server"); const renderInput = ({ meta: { touched, error } = {}, @@ -117,7 +119,7 @@ const LoginPage = ({ theme }) => { return (