mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 22:35:52 +01:00
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…
Add table
Add a link
Reference in a new issue