hunk.code_window: 	settings, err := handler.DataStore.Settings().Settings()
   	if err != nil {
   		return &httperror.HandlerError{http.StatusInternalServerError, "Unable to retrieve settings from the database", err}
   	}
   	u, err := handler.DataStore.User().UserByUsername(payload.Username)
   	if err != nil && !handler.DataStore.IsErrObjectNotFound(err) {
   		return &httperror.HandlerError{http.StatusInternalServerError, "Unable to retrieve a user with the specified username from the database", err}
   	}
   	if handler.DataStore.IsErrObjectNotFound(err) && (settings.AuthenticationMethod == portainer.AuthenticationInternal || settings.AuthenticationMethod == portainer.AuthenticationOAuth) {
   		return &httperror.HandlerError{http.StatusUnprocessableEntity, "Invalid credentials", httperrors.ErrUnauthorized}
   	}
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace replace replace keep
hunk.after_edit: 	user, err := handler.DataStore.User().UserByUsername(payload.Username)
   	if err != nil {
   		if !handler.DataStore.IsErrObjectNotFound(err) {
   			return &httperror.HandlerError{http.StatusInternalServerError, "Unable to retrieve a user with the specified username from the database", err}
   		}
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: angular.module('portainer.docker').component('serviceTasksDatatable', {
    templateUrl: './serviceTasksDatatable.html',
    controller: 'ServiceTasksDatatableController',
    bindings: {
      dataset: '<',
      serviceId: '<',
      tableKey: '@',
      orderBy: '@',
      reverseOrder: '<',
      nodes: '<',
      agentProxy: '<',
      textFilter: '=',
      showTaskLogsButton: '<',
    },
  });
  