Skip to content

Commit

Permalink
fix: add first time setup hint for user authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Feb 3, 2024
1 parent 0cf01e0 commit 4a565f2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webui/src/views/SettingsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ export const SettingsModal = () => {
labelCol={{ span: 6 }}
wrapperCol={{ span: 16 }}
>
{config.auth?.users?.length === 0 ? (
<>
<strong>Initial backrest setup! </strong>
<p>
Backrest has detected that you do not have any users configured, please add at least one user to secure the web interface.
</p>
<p>
You can add more users later or can reset users by editing the configuration file.
</p>
</>
) : null}
<Form.Item label="Users" required={true}>
<Form.List
name={["auth", "users"]}
Expand Down

0 comments on commit 4a565f2

Please sign in to comment.