Fix credentials first time
parent
0ae8aa5e19
commit
c2ccc4f6b8
|
@ -223,9 +223,12 @@ func New(database string, base User) (*FileManager, error) {
|
||||||
|
|
||||||
// Attaches db to this File Manager instance.
|
// Attaches db to this File Manager instance.
|
||||||
m.db = db
|
m.db = db
|
||||||
base.Username = ""
|
|
||||||
base.Password = ""
|
// Create the default user, making a copy of the base.
|
||||||
m.DefaultUser = &base
|
u := base
|
||||||
|
u.Username = ""
|
||||||
|
u.Password = ""
|
||||||
|
m.DefaultUser = &u
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue