From 5d9273cf2c093c57452ddc7bc793ce33b310e472 Mon Sep 17 00:00:00 2001 From: garethgeorge Date: Sat, 3 Feb 2024 02:37:55 -0800 Subject: [PATCH] fix: add first time setup hint for user authentication --- webui/src/views/SettingsModal.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webui/src/views/SettingsModal.tsx b/webui/src/views/SettingsModal.tsx index a9688cab..4a6b5cb9 100644 --- a/webui/src/views/SettingsModal.tsx +++ b/webui/src/views/SettingsModal.tsx @@ -101,6 +101,17 @@ export const SettingsModal = () => { labelCol={{ span: 6 }} wrapperCol={{ span: 16 }} > + {config.auth?.users?.length === 0 ? ( + <> + Initial backrest setup! +

+ Backrest has detected that you do not have any users configured, please add at least one user to secure the web interface. +

+

+ You can add more users later or can reset users by editing the configuration file. +

+ + ) : null}