public function mfaQuestionValidate($iQuestionId, $iUserId, $answer)
    {
        $oDb = Factory::service('Database');
        $oDb->select('answer, salt');
        $oDb->where('id', $iQuestionId);
        $oDb->where('user_id', $iUserId);
        $oQuestion = $oDb->get(NAILS_DB_PREFIX . 'user_auth_two_factor_question')->row();

        if (!$oQuestion) {
            return false;
        }

        $hash = sha1(sha1(strtolower($answer)) . APP_PRIVATE_KEY . $oQuestion->salt);

        return $hash === $oQuestion->answer;
    }