mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-08-03 21:23:09 +00:00
Fix credentials first time
This commit is contained in:
parent
0ae8aa5e19
commit
c2ccc4f6b8
1 changed files with 6 additions and 3 deletions
|
|
@ -223,9 +223,12 @@ func New(database string, base User) (*FileManager, error) {
|
|||
|
||||
// Attaches db to this File Manager instance.
|
||||
m.db = db
|
||||
base.Username = ""
|
||||
base.Password = ""
|
||||
m.DefaultUser = &base
|
||||
|
||||
// Create the default user, making a copy of the base.
|
||||
u := base
|
||||
u.Username = ""
|
||||
u.Password = ""
|
||||
m.DefaultUser = &u
|
||||
return m, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue