diff --git a/public/main/auth/lostPassword.php b/public/main/auth/lostPassword.php index c1cb2f4d1a..4dffd401c7 100644 --- a/public/main/auth/lostPassword.php +++ b/public/main/auth/lostPassword.php @@ -106,10 +106,6 @@ if ($form->validate()) { exit; } - if ('true' === api_get_plugin_setting('whispeakauth', WhispeakAuthPlugin::SETTING_ENABLE)) { - WhispeakAuthPlugin::deleteEnrollment($user['uid']); - } - $passwordEncryption = api_get_configuration_value('password_encryption'); if ('none' === $passwordEncryption) { diff --git a/public/main/inc/ajax/exercise.ajax.php b/public/main/inc/ajax/exercise.ajax.php index a00aa02a4c..39781fa0b6 100644 --- a/public/main/inc/ajax/exercise.ajax.php +++ b/public/main/inc/ajax/exercise.ajax.php @@ -514,18 +514,6 @@ switch ($action) { exit; } - if (WhispeakAuthPlugin::questionRequireAuthentify($question_id)) { - if (ONE_PER_PAGE == $objExercise->type) { - echo json_encode(['type' => 'one_per_page']); - break; - } - - echo json_encode(['ok' => true]); - break; - } else { - ChamiloSession::erase(WhispeakAuthPlugin::SESSION_QUIZ_QUESTION); - } - // Getting information of the current exercise. $exercise_stat_info = $objExercise->get_stat_track_exercise_info_by_exe_id($exeId); $exercise_id = $exercise_stat_info['exe_exo_id']; diff --git a/public/main/inc/lib/exercise.lib.php b/public/main/inc/lib/exercise.lib.php index e52d25a21a..d5aee13baa 100644 --- a/public/main/inc/lib/exercise.lib.php +++ b/public/main/inc/lib/exercise.lib.php @@ -69,8 +69,6 @@ class ExerciseLib return false; } - $questionRequireAuth = WhispeakAuthPlugin::questionRequireAuthentify($questionId); - if (EXERCISE_FEEDBACK_TYPE_END != $exercise->getFeedbackType()) { $show_comment = false; } @@ -101,12 +99,6 @@ class ExerciseLib echo $titleToDisplay; } - if ($questionRequireAuth) { - WhispeakAuthPlugin::quizQuestionAuthentify($questionId, $exercise); - - return false; - } - if (!empty($questionDescription) && READING_COMPREHENSION != $answerType) { echo Display::div( $questionDescription, @@ -1488,11 +1480,6 @@ HTML; } echo $objQuestionTmp->getTitleToDisplay($exercise, $current_item); } - if ($questionRequireAuth) { - WhispeakAuthPlugin::quizQuestionAuthentify($questionId, $exercise); - - return false; - } //@todo I need to the get the feedback type echo <<getTitleToDisplay($exercise, $current_item); } - if ($questionRequireAuth) { - WhispeakAuthPlugin::quizQuestionAuthentify($questionId, $exercise); - - return false; - } - echo '
diff --git a/public/main/lp/ScormApi.php b/public/main/lp/ScormApi.php index 856c817790..1987570b04 100644 --- a/public/main/lp/ScormApi.php +++ b/public/main/lp/ScormApi.php @@ -645,13 +645,6 @@ class ScormApi break; } - if (WhispeakAuthPlugin::isLpItemMarked($new_item_id)) { - ChamiloSession::write( - WhispeakAuthPlugin::SESSION_LP_ITEM, - ['lp' => $lpId, 'lp_item' => $new_item_id, 'src' => ''] - ); - } - $mylp->start_current_item(true); if ($mylp->force_commit) { $mylp->save_current(); diff --git a/public/main/lp/learnpathItem.class.php b/public/main/lp/learnpathItem.class.php index f9c70b2816..349988dd4e 100644 --- a/public/main/lp/learnpathItem.class.php +++ b/public/main/lp/learnpathItem.class.php @@ -2799,10 +2799,6 @@ class learnpathItem error_log("type: $type"); } - if (!WhispeakAuthPlugin::isAllowedToSaveLpItem($this->iId)) { - return false; - } - switch ($type) { case 'asset': if ($prereqs_complete) { diff --git a/public/main/lp/lp_content.php b/public/main/lp/lp_content.php index cd0b260e3f..b498df7666 100644 --- a/public/main/lp/lp_content.php +++ b/public/main/lp/lp_content.php @@ -57,15 +57,6 @@ if ($dir) { $learnPath->stop_previous_item(); $prerequisiteCheck = $learnPath->prerequisites_match($lpItemId); if (true === $prerequisiteCheck) { - if (WhispeakAuthPlugin::isLpItemMarked($lpItemId)) { - ChamiloSession::write( - WhispeakAuthPlugin::SESSION_LP_ITEM, - ['lp' => $learnPath->lp_id, 'lp_item' => $lpItemId, 'src' => $src] - ); - - $src = api_get_path(WEB_PLUGIN_PATH).'whispeakauth/authentify.php'; - break; - } $src = $learnPath->get_link('http', $lpItemId); if (empty($src)) { $src = 'blank.php?'.api_get_cidreq().'&error=document_protected'; diff --git a/public/main/lp/lp_view.php b/public/main/lp/lp_view.php index 4689c8cea3..6c893b10a3 100644 --- a/public/main/lp/lp_view.php +++ b/public/main/lp/lp_view.php @@ -221,16 +221,6 @@ if (!isset($src)) { $src = $oLP->fixBlockedLinks($src); - if (WhispeakAuthPlugin::isLpItemMarked($lp_item_id)) { - ChamiloSession::write( - WhispeakAuthPlugin::SESSION_LP_ITEM, - ['lp' => $lp->getIid(), 'lp_item' => $lp_item_id, 'src' => $src] - ); - - $src = api_get_path(WEB_PLUGIN_PATH).'whispeakauth/authentify.php'; - break; - } - $oLP->start_current_item(); // starts time counter manually if asset } else { $src = 'blank.php?error=prerequisites';