You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
Make sure default user has no username nor password
This commit is contained in:
@@ -228,6 +228,8 @@ func New(database string, base User) (*FileManager, error) {
|
||||
m.db = db
|
||||
|
||||
// Create the default user, making a copy of the base.
|
||||
base.Username = ""
|
||||
base.Password = ""
|
||||
m.DefaultUser = &base
|
||||
return m, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user