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

Incorrect workflow in handling of forgotten passwords

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.11, 2.0.2
    • 1.9.8, 2.0.1
    • Authentication
    • Windows 7/Apache
      Note that this site is running SSL.
    • Any
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • Easy

      Click "login", then follow the procedure for a forgotten password. Follow through with the "Forgotten password confirmation. You get page "forgot_password.php". Here is a link to "change your password". Click there and you go to your auth module's login form, since you need to login before you can change your password. Now login using the new password provided in your email. Now you should be taken to the change password form, since that's where you wanted to go when you got re-routed to the login form. It doesn't happen,instead you go to the home page.

      The reason is on line 182 of file "login/index.php". Here code checks $SESSION->wantsurl, which is properly set to the change password form. However, it also checks to see that the "wantsurl" address contains $CFG->wwwroot. Since my site is using SSL, this fails. It should also allow "wantsurl" to contain $CFG->httpswwwroot.

      cheers,
      – mike

            skodak Petr Skoda
            mlitzkow Michael J Litzkow (Inactive)
            Dongsheng Cai Dongsheng Cai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.