hunk.code_window: 	if settings.AuthenticationMethod == portainer.AuthenticationLDAP {
   		if u == nil && settings.LDAPSettings.AutoCreateUsers {
   			return handler.authenticateLDAPAndCreateUser(w, payload.Username, payload.Password, &settings.LDAPSettings)
   		} else if u == nil && !settings.LDAPSettings.AutoCreateUsers {
   			return &httperror.HandlerError{http.StatusUnprocessableEntity, "Invalid credentials", httperrors.ErrUnauthorized}
   		}
  
hunk.labels: keep replace replace replace replace keep keep
hunk.after_edit: 		if settings.AuthenticationMethod == portainer.AuthenticationInternal ||
   			settings.AuthenticationMethod == portainer.AuthenticationOAuth ||
   			(settings.AuthenticationMethod == portainer.AuthenticationLDAP && !settings.LDAPSettings.AutoCreateUsers) {
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: .items {
    margin-top: 10px;
  }
  
  .items > * + * {
    margin-top: 2px;
  }
  
  .label {
    text-align: left;
    font-size: 0.9em;
    padding-top: 7px;
    margin-bottom: 0;
    display: inline-block;
    max-width: 100%;
    font-weight: 700;
  }
  
  .item-line {
    display: flex;
  }
  
  .item-actions {
    display: flex;
    margin-left: 2px;
  }
  
  .default-item {
    width: 100% !important;
  }
  