diff --git a/admin/tool/mobile/autologin.php b/admin/tool/mobile/autologin.php
index d5ef969439a..13154b3d3ef 100644
--- a/admin/tool/mobile/autologin.php
+++ b/admin/tool/mobile/autologin.php
@@ -31,8 +31,6 @@ $urltogo = optional_param('urltogo', $CFG->wwwroot, PARAM_URL); // URL to red
$context = context_system::instance();
$PAGE->set_context($context);
-// Force https.
-$PAGE->https_required();
// Check if the user is already logged-in.
if (isloggedin() and !isguestuser()) {
diff --git a/auth/ldap/ntlmsso_attempt.php b/auth/ldap/ntlmsso_attempt.php
index 561d7bf9d47..155866b14d7 100644
--- a/auth/ldap/ntlmsso_attempt.php
+++ b/auth/ldap/ntlmsso_attempt.php
@@ -2,9 +2,6 @@
require(__DIR__.'/../../config.php');
-//HTTPS is required in this page when $CFG->loginhttps enabled
-$PAGE->https_required();
-
$PAGE->set_url('/auth/ldap/ntlmsso_attempt.php');
$PAGE->set_context(context_system::instance());
@@ -33,7 +30,6 @@ $PAGE->set_title("$site->fullname: $loginsite");
$PAGE->set_heading($site->fullname);
echo $OUTPUT->header();
-// $PAGE->https_required() up above takes care of what $CFG->httpswwwroot should be.
$msg = '
'.get_string('ntlmsso_attempting', 'auth_ldap').'
'
. '
httpswwwroot/login/index.php");
$PAGE->set_context($context);
@@ -305,9 +302,6 @@ if (!empty($CFG->alternateloginurl)) {
redirect($loginurl->out(false));
}
-// make sure we really are on the https page when https login required
-$PAGE->verify_https_required();
-
/// Generate the login page with forms
if (!isset($frm) or !is_object($frm)) {
diff --git a/login/lib.php b/login/lib.php
index 9ea72fde604..c2879d2dec7 100644
--- a/login/lib.php
+++ b/login/lib.php
@@ -58,9 +58,6 @@ function core_login_process_password_reset_request() {
die; // Never reached.
}
- // Make sure we really are on the https page when https login required.
- $PAGE->verify_https_required();
-
// DISPLAY FORM.
echo $OUTPUT->header();
@@ -253,7 +250,6 @@ function core_login_process_password_set($token) {
$setdata->username2 = $user->username;
$setdata->token = $user->token;
$mform->set_data($setdata);
- $PAGE->verify_https_required();
echo $OUTPUT->header();
echo $OUTPUT->box(get_string('setpasswordinstructions'), 'generalbox boxwidthnormal boxaligncenter');
$mform->display();
diff --git a/login/signup.php b/login/signup.php
index 03321e459e6..72746856afb 100644
--- a/login/signup.php
+++ b/login/signup.php
@@ -32,9 +32,6 @@ if (!$authplugin = signup_is_enabled()) {
print_error('notlocalisederrormessage', 'error', '', 'Sorry, you may not use this page.');
}
-//HTTPS is required in this page when $CFG->loginhttps enabled
-$PAGE->https_required();
-
$PAGE->set_url('/login/signup.php');
$PAGE->set_context(context_system::instance());
@@ -75,9 +72,6 @@ if ($mform_signup->is_cancelled()) {
exit; //never reached
}
-// make sure we really are on the https page when https login required
-$PAGE->verify_https_required();
-
$newaccount = get_string('newaccount');
$login = get_string('login');
diff --git a/user/edit.php b/user/edit.php
index deeca38c568..bb4a440c561 100644
--- a/user/edit.php
+++ b/user/edit.php
@@ -29,9 +29,6 @@ require_once($CFG->dirroot.'/user/editlib.php');
require_once($CFG->dirroot.'/user/profile/lib.php');
require_once($CFG->dirroot.'/user/lib.php');
-// HTTPS is required in this page when $CFG->loginhttps enabled.
-$PAGE->https_required();
-
$userid = optional_param('id', $USER->id, PARAM_INT); // User id.
$course = optional_param('course', SITEID, PARAM_INT); // Course id (defaults to Site).
$returnto = optional_param('returnto', null, PARAM_ALPHA); // Code determining where to return to after save.
@@ -304,9 +301,6 @@ if ($usernew = $userform->get_data()) {
}
}
-// Make sure we really are on the https page when https login required.
-$PAGE->verify_https_required();
-
// Display page header.
$streditmyprofile = get_string('editmyprofile');
diff --git a/user/editadvanced.php b/user/editadvanced.php
index 176311d9e12..6f3d07e40cc 100644
--- a/user/editadvanced.php
+++ b/user/editadvanced.php
@@ -31,9 +31,6 @@ require_once($CFG->dirroot.'/user/profile/lib.php');
require_once($CFG->dirroot.'/user/lib.php');
require_once($CFG->dirroot.'/webservice/lib.php');
-// HTTPS is required in this page when $CFG->loginhttps enabled.
-$PAGE->https_required();
-
$id = optional_param('id', $USER->id, PARAM_INT); // User id; -1 if creating new user.
$course = optional_param('course', SITEID, PARAM_INT); // Course id (defaults to Site).
$returnto = optional_param('returnto', null, PARAM_ALPHA); // Code determining where to return to after save.
@@ -313,9 +310,6 @@ if ($usernew = $userform->get_data()) {
// Never reached..
}
-// Make sure we really are on the https page when https login required.
-$PAGE->verify_https_required();
-
// Display page header.
if ($user->id == -1 or ($user->id != $USER->id)) {