code: func (api OrganizationsAPI) Set2faValidityTime(w http.ResponseWriter, r *http.Request) {
  	globalid := mux.Vars(r)["globalid"]
  
  	body := struct {
  		SecondsValidity int `json:"secondsvalidity"`
  	}{}
  
  	if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
  		log.Error("Error while setting 2FA validity time: ", err.Error())
  		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
  		return
  	}
  
  	mgr := organization.NewManager(r)
  	seconds := body.SecondsValidity
  
  	if seconds < 0 {
  		seconds = 0
  	} else if seconds > 2678400 {
  		seconds = 2678400
  	}
  
  	err := mgr.SetValidity(globalid, seconds)
  	if err != nil {
  		log.Error("Error while setting 2FA validity time: ", err.Error())
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  
  	w.WriteHeader(http.StatusOK)
  }
docs: // Set2faValidityTime is the handler for PUT /organizations/globalid/2fa/validity
  // Sets the 2fa validity time for the organization, in days