From fd89d8021703fb2712d1916fe49c771c085d8942 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 28 Jun 2025 03:28:00 +0200 Subject: [PATCH] Prevent basic auth with both empty username and password On ios the native basic auth prompt does not work with both an empty username and password. In case both are empty, the "login" button is disabled and can't be pressed. --- src/modules/settings/screens/ServerSettings.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/settings/screens/ServerSettings.tsx b/src/modules/settings/screens/ServerSettings.tsx index b7885c8e..d397e996 100644 --- a/src/modules/settings/screens/ServerSettings.tsx +++ b/src/modules/settings/screens/ServerSettings.tsx @@ -285,18 +285,21 @@ export const ServerSettings = () => { updateSetting('basicAuthEnabled', e.target.checked)} /> !serverSettings.basicAuthEnabled || !!value.trim()} handleChange={(authUsername) => updateSetting('basicAuthUsername', authUsername)} /> !serverSettings.basicAuthEnabled || !!value.trim()} handleChange={(authPassword) => updateSetting('basicAuthPassword', authPassword)} />