Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55949

Incorrect redirect after clicking on forget password reset link from email

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 3.1.2
    • None
    • Authentication
    • MySQL
    • MOODLE_31_STABLE
    • Hide

      In login/forgot_password.php at line 88 replace
      redirect($CFG->wwwroot . '/login/forgot_password.php');
      with
      redirect($CFG->httpswwwroot . '/login/forgot_password.php');

      Show
      In login/forgot_password.php at line 88 replace redirect($CFG->wwwroot . '/login/forgot_password.php'); with redirect($CFG->httpswwwroot . '/login/forgot_password.php');
    • Easy
    • Hide
      1. Enable loginhttps config setting.
      2. Go to login page, click the forgot password link
      3. Supply valid username or email address
      4. Check email inbox for that user & click link in email for password reset
      5. Check that you are redirected back to the 'Search by username/email' forget password page instead of set password form.
      Show
      Enable loginhttps config setting. Go to login page, click the forgot password link Supply valid username or email address Check email inbox for that user & click link in email for password reset Check that you are redirected back to the 'Search by username/email' forget password page instead of set password form.

    Description

      When the site using HTTPS for logins, If the user requested for a password reset and clicked on forget password link from the email received for reset password, login/forgot_password.php file redirects the user to an HTTP URL instead of HTTPS URL . The site then, because of the wrong URL redirects the user again to the 'Search by username/email' form instead of 'set password' form.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pinky Pinky Sharma
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: