Make sure default user has no username nor password

This commit is contained in:
Henrique Dias committed 2017-07-20 09:54:41 +01:00
1 parent 0fc290f032
commit f8465edab5
1 file changed
+2
+2
View File
@@ -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
}