Make sure default user has no username nor password
parent
0fc290f032
commit
f8465edab5
|
@ -228,6 +228,8 @@ func New(database string, base User) (*FileManager, error) {
|
||||||
m.db = db
|
m.db = db
|
||||||
|
|
||||||
// Create the default user, making a copy of the base.
|
// Create the default user, making a copy of the base.
|
||||||
|
base.Username = ""
|
||||||
|
base.Password = ""
|
||||||
m.DefaultUser = &base
|
m.DefaultUser = &base
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue