MDL-55945 login: fix https support for forgot_password.php
authorJake Dallimore <jake@moodle.com>
Tue, 13 Sep 2016 04:21:11 +0000 (12:21 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 15 Sep 2016 01:19:39 +0000 (09:19 +0800)
login/forgot_password.php

index fa7e7d6..70f10af 100644 (file)
@@ -85,7 +85,7 @@ if (empty($token)) {
     // The session var is intentionally used only during the lifespan of one request (the redirect) and is unset above.
     if (!$tokeninsession && $_SERVER['REQUEST_METHOD'] === 'GET') {
         $SESSION->password_reset_token = $token;
-        redirect($CFG->wwwroot . '/login/forgot_password.php');
+        redirect($CFG->httpswwwroot . '/login/forgot_password.php');
     } else {
         // Continue with the password reset process.
         core_login_process_password_set($token);