mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-28 20:06:32 +00:00
fix: add first time setup hint for user authentication
This commit is contained in:
@@ -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"]}
|
||||
|
||||
Reference in New Issue
Block a user