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

New Web Service core_auth_resend_confirmation_email

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6
    • 3.5.2
    • Authentication
    • MOODLE_35_STABLE
    • MOODLE_36_STABLE
    • MDL-63742-master
    • Hide
      1. Log-in as admin in your local site
      2. Go to Site administration > Plugins >Authentication > Manage authentication and Enable the "E-mail based self-registration" plugin, in the same page scroll down to "Self registration " to set there "E-mail based self-registration"
      3. Now, log-out and open again your Moodle site in the browser and via the login page "Create new account" button create a new user account using a correct email address you have access to(please, annotate the username and password you used)
      4. You should receive a new account confirmation email, please, ignore it.
      5. Open a terminal, an execute the following command replacing username and password with the values you just annotated. Remember to replace your site URL too

        curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary '[{"index":0,"methodname":"core_auth_resend_confirmation_email","args":{"username": "studentjuan", "password": "moodle"}}]' | python -m "json.tool"

      6. Confirm that:
        • the data->status field from the response is set to true
        • You received again the confirmation email
      7. Execute again the CURL request and check that now you receive an exception->errorcode alreadyconfirmed
      8. Now, replace the password with an invalid one, execute the curl request an check that exception->errorcode is invalidlogin
      Show
      Log-in as admin in your local site Go to Site administration > Plugins >Authentication > Manage authentication and Enable the "E-mail based self-registration" plugin, in the same page scroll down to "Self registration " to set there "E-mail based self-registration" Now, log-out and open again your Moodle site in the browser and via the login page "Create new account" button create a new user account using a correct email address you have access to(please, annotate the username and password you used) You should receive a new account confirmation email, please, ignore it. Open a terminal, an execute the following command replacing username and password with the values you just annotated. Remember to replace your site URL too curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"core_auth_resend_confirmation_email","args":{"username": "studentjuan", "password": "moodle"}}] ' | python -m "json.tool" Confirm that: the data->status field from the response is set to true You received again the confirmation email Execute again the CURL request and check that now you receive an exception->errorcode alreadyconfirmed Now, replace the password with an invalid one, execute the curl request an check that exception->errorcode is invalidlogin

      We need this WS for MOBILE-2599

            jleyva Juan Leyva
            jleyva Juan Leyva
            Albert Gasset Albert Gasset
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m

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