Make sure default user has no username nor password
This commit is contained in:
1 file changed
+2
@@ -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