hunk.code_window: 		return &httperror.HandlerError{http.StatusInternalServerError, "Unable to retrieve settings from the database", err}
   	}
   	if settings.AuthenticationMethod == portainer.AuthenticationInternal {
   		user.Password, err = handler.CryptoService.Hash(payload.Password)
   		if err != nil {
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: 	// when ldap/oauth is on, can only add users without password
   	if (settings.AuthenticationMethod == portainer.AuthenticationLDAP || settings.AuthenticationMethod == portainer.AuthenticationOAuth) && payload.Password != "" {
   		errMsg := "A user with password can not be created when authentication method is Oauth or LDAP"
   		return &httperror.HandlerError{http.StatusBadRequest, errMsg, errors.New(errMsg)}
   	}
  
hunk.file_path: api/http/handler/users/user_create.go
hunk.type: add
file: export const sidebarSection = {
    templateUrl: './sidebar-section.html',
    transclude: true,
    bindings: {
      title: '@',
    },
  };
  