Make sure default user has no username nor password

pull/157/head
Henrique Dias 2017-07-20 09:54:41 +01:00
parent 0fc290f032
commit f8465edab5
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 2 additions and 0 deletions

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
}