mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
web ui: allow to create multiple users from a template
This commit is contained in:
@@ -1323,7 +1323,9 @@ func validateFolder(folder *vfs.BaseVirtualFolder) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func validateUser(user *User) error {
|
||||
// ValidateUser returns an error if the user is not valid
|
||||
// FIXME: this should be defined as User struct method
|
||||
func ValidateUser(user *User) error {
|
||||
user.SetEmptySecretsIfNil()
|
||||
buildUserHomeDir(user)
|
||||
if err := validateBaseParams(user); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user