MDL-42834 admin: Cleanup logic of login page only needed for loginhttps
authorJohn Okely <jlokely@gmail.com>
Fri, 15 Sep 2017 01:20:37 +0000 (09:20 +0800)
committerMark Nelson <markn@moodle.com>
Mon, 23 Oct 2017 04:25:36 +0000 (12:25 +0800)
login/index.php

index 8e2d457..322575b 100644 (file)
@@ -30,13 +30,8 @@ require_once('lib.php');
 redirect_if_major_upgrade_required();
 
 $testsession = optional_param('testsession', 0, PARAM_INT); // test session works properly
-$cancel      = optional_param('cancel', 0, PARAM_BOOL);      // redirect to frontpage, needed for loginhttps
 $anchor      = optional_param('anchor', '', PARAM_RAW);      // Used to restore hash anchor to wantsurl.
 
-if ($cancel) {
-    redirect(new moodle_url('/'));
-}
-
 $context = context_system::instance();
 $PAGE->set_url("$CFG->httpswwwroot/login/index.php");
 $PAGE->set_context($context);