parent
0a558203da
commit
b99d4ce82e
1 changed files with 1 additions and 0 deletions
|
@ -1534,6 +1534,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 util.NewValidationError("folder name is mandatory")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue