public function getChallengeKey() { if ($this->userData['extraKeyType'] == 'challenge') { // resets keys so this challenge cannot be retested AuthUserData::clearExtraKey($this->userData['userID']); return $this->userData['extraKey']; } return null; }