diff --git a/dataprovider/dataprovider.go b/dataprovider/dataprovider.go index ab67af69..89918abe 100644 --- a/dataprovider/dataprovider.go +++ b/dataprovider/dataprovider.go @@ -1560,6 +1560,7 @@ func createUserPasswordHash(user *User) error { // ValidateFolder returns an error if the folder is not valid // FIXME: this should be defined as Folder struct method func ValidateFolder(folder *vfs.BaseVirtualFolder) error { + folder.FsConfig.SetEmptySecretsIfNil() if folder.Name == "" { return &ValidationError{err: "folder name is mandatory"} }