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

New users getting “error/moodle/invalidconfirmdata when clicking to confirm

XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-57278-master-5
    • Hide
      Test the fix
      1. Set up email using mailcatcher, and set your stmphosts to that server
      2. Go to Site administration ▶︎ Plugins ▶︎ Authentication ▶︎ Manage authentication
      3. Select email based self registration as Self registration
      4. Log out or open a tab in another browser
      5. Create a user
      6. Check email
      7. Go to the confirmation url given
      8. Make sure you do not receive an exception
      9. Do the same for all these usernames
        • A dot in the middle (e.g. "cameron.ball")
        • Test trailing dots (e.g. "asdfjkl……" )
        • Create a username with underscore (_), hyphen (-), period (.) and at symbol (@). (e.g. "mark_-.@nelson....")
      10. For each one make sure you can sign up with no exceptions and all periods (.) are converted to %2E
      Regression testing
      1. Install the Moodle Mobile app in your mobile device
      2. Important, the Moodle site must be accessible from your mobile device
      3. In the Moodle site, enable authentication via e-mail (aka enable users to create their own accounts in the site)
      4. Ensure that advanced options like re-captcha are disabled
      5. Now, execute the following curl command to create a new user account in the site simulating to be the Mobile app (important, use a real user email account that you can open in your mobile device):

        curl 'http://192.168.1.103/m/stable_master/lib/ajax/service.php' --data-binary '[{"index":0,"methodname":"auth_email_signup_user","args":{"username": "u2", "password": "moodle", "email": "myrealemail@gmail.com", "firstname": "asb", "lastname": "asdfasdf", "city": "Barcelona", "country": "ES", "redirect": "http://192.168.1.103/m/stable_master/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=xyz&confirmed=1"}}]' | python -m "json.tool"

      6. If the user is correctly created, you will see a "success": true (among other data)
      7. You should receive then an e-mail with the account confirmation link, open the email in your mobile device and click the link
      8. The Mobile app will be launched (please, note that you will see an error or you won't be automatically logged in the site because the functionality is not yet implemented in the app)
      9. Go to the Moodle site, and confirm that the user account is confirmed
      10. Repeat the process (deleting the previous user) and now open the e-mail in your computer, you should see the standard Confirmation screen with a link to "Courses" (at the bottom you will see also a link to try to launch the app that won't work in desktop)
      11. Finally, create a new Moodle user account using the Moodle Web interface to ensure that no regressions were introduced with the changes
      Show
      Test the fix Set up email using mailcatcher, and set your stmphosts to that server Go to Site administration ▶︎ Plugins ▶︎ Authentication ▶︎ Manage authentication Select email based self registration as Self registration Log out or open a tab in another browser Create a user Check email Go to the confirmation url given Make sure you do not receive an exception Do the same for all these usernames A dot in the middle (e.g. "cameron.ball") Test trailing dots (e.g. "asdfjkl……" ) Create a username with underscore (_), hyphen (-), period (.) and at symbol (@). (e.g. "mark_-.@nelson....") For each one make sure you can sign up with no exceptions and all periods (.) are converted to %2E Regression testing Install the Moodle Mobile app in your mobile device Important, the Moodle site must be accessible from your mobile device In the Moodle site, enable authentication via e-mail (aka enable users to create their own accounts in the site) Ensure that advanced options like re-captcha are disabled Now, execute the following curl command to create a new user account in the site simulating to be the Mobile app (important, use a real user email account that you can open in your mobile device): curl 'http://192.168.1.103/m/stable_master/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"auth_email_signup_user","args":{"username": "u2", "password": "moodle", "email": "myrealemail@gmail.com", "firstname": "asb", "lastname": "asdfasdf", "city": "Barcelona", "country": "ES", "redirect": "http://192.168.1.103/m/stable_master/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=xyz&confirmed=1"}}] ' | python -m "json.tool" If the user is correctly created, you will see a "success": true (among other data) You should receive then an e-mail with the account confirmation link, open the email in your mobile device and click the link The Mobile app will be launched (please, note that you will see an error or you won't be automatically logged in the site because the functionality is not yet implemented in the app) Go to the Moodle site, and confirm that the user account is confirmed Repeat the process (deleting the previous user) and now open the e-mail in your computer, you should see the standard Confirmation screen with a link to "Courses" (at the bottom you will see also a link to try to launch the app that won't work in desktop) Finally, create a new Moodle user account using the Moodle Web interface to ensure that no regressions were introduced with the changes
    • 3.3 on-sync

      In the last couple of days three people have emailed support saying they have clicked on the link sent in the email to confirm their account and get “error/moodle/invalidconfirmdata"

      They say they clicked the link straight away after receiving the email, so it cannot be because of a delay.

            johno John Okely
            marycooch Mary Cooch
            Ankit Agarwal Ankit Agarwal
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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