func ValidateUserCreationWithPassword(store *storage.Storage, request *model.UserCreationRequest) *ValidationError {
	if request.Username == "" {
		return NewValidationError("error.user_mandatory_fields")
	}
	if store.UserExists(request.Username) {
		return NewValidationError("error.user_already_exists")
	}
	if err := validatePassword(request.Password); err != nil {
		return err
	}
	return nil
}
ValidateUserCreationWithPassword validates user creation with a password.
package validator  
import (
	"miniflux.app/locale"
	"miniflux.app/model"
	"miniflux.app/storage"
)