hunk.code_window: 	err = handler.DataStore.User().Create(user)
   	if err != nil {
   		return &httperror.HandlerError{http.StatusInternalServerError, "Unable to persist user inside the database", err}
   	}
   	err = handler.addUserIntoTeams(user, ldapSettings)
  
hunk.labels: keep replace replace replace keep keep keep
hunk.after_edit: 		err = handler.DataStore.User().Create(user)
   		if err != nil {
   			return &httperror.HandlerError{http.StatusInternalServerError, "Unable to persist user inside the database", err}
   		}
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: angular.module('portainer.azure').factory('ResourceGroup', [
    '$resource',
    'API_ENDPOINT_ENDPOINTS',
    'EndpointProvider',
    function ResourceGroupFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
      'use strict';
      return $resource(
        API_ENDPOINT_ENDPOINTS + '/:endpointId/azure/subscriptions/:subscriptionId/resourcegroups/:resourceGroupName',
        {
          endpointId: EndpointProvider.endpointID,
          'api-version': '2018-02-01',
        },
        {
          query: { method: 'GET', params: { subscriptionId: '@subscriptionId' } },
          get: { method: 'GET' },
        }
      );
    },
  ]);
  