code: func (m *Manager) GetValidity(globalID string) (int, error) {
  	var org Organization
  	err := m.collection.Find(bson.M{"globalid": globalID}).One(&org)
  	if err != nil {
  		return 0, err
  	}
  	seconds := org.SecondsValidity
  	if seconds == -1 { //special value to avoid confusion with mongo null
  		return 0, err
  	} else if seconds == 0 { //mongo null for int field, use default duration
  		return 3600 * 24 * 7, err //7 days default duration
  	} else {
  		return seconds, err
  	}
  }
docs: // GetValidity gets the 2FA validity duration in seconds