code: func (api OrganizationsAPI) Get2faValidityTime(w http.ResponseWriter, r *http.Request) {
  	globalid := mux.Vars(r)["globalid"]
  	mgr := organization.NewManager(r)
  
  	validity, err := mgr.GetValidity(globalid)
  	if err != nil && err != mgo.ErrNotFound {
  		log.Error("Error while getting validity duration: ", err.Error())
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  	if err == mgo.ErrNotFound {
  		http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
  		return
  	}
  	response := struct {
  		SecondsValidity int `json:"secondsvalidity"`
  	}{
  		SecondsValidity: validity,
  	}
  
  	w.Header().Set("Content-Type", "application/json")
  	json.NewEncoder(w).Encode(&response)
  }
docs: // Get2faValidityTime is the handler for GET /organizations/globalid/2fa/validity
  // Get the 2fa validity time for the organization, in seconds