code: func (service *IYOEmailAddressValidationService) ConfirmValidation(request *http.Request, key, secret string) (err error) {
  	info, err := service.getEmailAddressValidationInformation(request, key)
  	if err != nil {
  		return
  	}
  	if info == nil {
  		err = ErrInvalidOrExpiredKey
  		return
  	}
  	if info.Secret != secret {
  		err = ErrInvalidCode
  		return
  	}
  	valMngr := validation.NewManager(request)
  	p := valMngr.NewValidatedEmailAddress(info.Username, info.EmailAddress)
  	err = valMngr.SaveValidatedEmailAddress(p)
  	if err != nil {
  		return
  	}
  	err = valMngr.UpdateEmailAddressValidationInformation(key, true)
  	if err != nil {
  		return
  	}
  	return
  }
docs: //ConfirmValidation checks if the supplied code matches the username and key