Fix credentials first time
Former-commit-id: 04503b0fd120f7f040cd1eeb9dd731744f8becd4 [formerly 034a404bc26ee1735c59aa1c3ae4d8de5ad1a052] [formerly a36ccab9ab615de39f9ebf53621f8c8b1c157481 [formerly c2ccc4f6b8
]]
Former-commit-id: 7d184c5e57b7854f5879f0bb02f3e3d50b1ea457 [formerly b6b59e12353b2e4f96f17b56bd87225deb3d92ee]
Former-commit-id: 9a0a328098c8981d3694cad40314834a3140508f
pull/726/head
parent
5770cacc0b
commit
7bd30c1026
|
@ -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…
Reference in New Issue