hunk.code_window: 	}
   	return handler.authenticateInternal(w, u, payload.Password)
   }
  
hunk.labels: keep keep replace replace keep
hunk.after_edit: 	if user != nil && isUserInitialAdmin(user) || settings.AuthenticationMethod == portainer.AuthenticationInternal {
   		return handler.authenticateInternal(rw, user, payload.Password)
   	}
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: import angular from 'angular';
  
  angular.module('portainer.edge').factory('EdgeGroupService', function EdgeGroupServiceFactory(EdgeGroups) {
    var service = {};
  
    service.group = function group(groupId) {
      return EdgeGroups.get({ id: groupId }).$promise;
    };
  
    service.groups = function groups() {
      return EdgeGroups.query({}).$promise;
    };
  
    service.remove = function remove(groupId) {
      return EdgeGroups.remove({ id: groupId }).$promise;
    };
  
    service.create = function create(group) {
      return EdgeGroups.create(group).$promise;
    };
  
    service.update = function update(group) {
      return EdgeGroups.update(group).$promise;
    };
  
    return service;
  });
  