Uploaded image for project: 'Moodle Mobile'
  1. Moodle Mobile
  2. MOBILE-1900

Use JS recaptcha lib in signup instead of image returned by WS

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.4.2
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide

      Setting up the site

      To test this issue, you need a site with MDL-61600 applied.

      1. In web as admin, set up site reCAPTCHA keys (Site administration > Plugins > Authentication > Manage authentication). You can request the keys in here.
      2. Enable Email-based self-registration (Site administration > Plugins > Authentication > Manage authentication)
      3. Enable reCAPTCHA for Email-based self-registration (Site administration > Plugins > Authentication > Email-based self-registration)
      4. Go to Site administration > Security > HTTP security and enable "Allow frame embedding".
      5. Finally, create a new feedback and add a Captcha question.

      Testing the issue

      1. In the app, click to add a new site and enter the site URL.
      2. In the credentials page, click to create a new account. Check that you see an "Answer" button in the security question category. 
      3. Fill all the fields except the Captcha (security question). Click to send the form and check that you see an error message.
      4. Now click the "Answer" button in the security question category and check that a modal is opened with the recaptcha element.
      5. Answer the recaptcha (the modal should be closed automatically) and send the form again. Check that now the form is successfully submitted.
      6. Now login in the site and open the feedback created before (the one with the captcha). Check that the captcha works fine in there too.
      Show
      Setting up the site To test this issue, you need a site with  MDL-61600 applied. In web as admin, set up site reCAPTCHA keys (Site administration > Plugins > Authentication > Manage authentication). You can request the keys in here . Enable Email-based self-registration (Site administration > Plugins > Authentication > Manage authentication) Enable reCAPTCHA for Email-based self-registration (Site administration > Plugins > Authentication > Email-based self-registration) Go to Site administration > Security > HTTP security and enable "Allow frame embedding". Finally, create a new feedback and add a Captcha question. Testing the issue In the app, click to add a new site and enter the site URL. In the credentials page, click to create a new account. Check that you see an "Answer" button in the security question category.  Fill all the fields except the Captcha (security question). Click to send the form and check that you see an error message. Now click the "Answer" button in the security question category and check that a modal is opened with the recaptcha element. Answer the recaptcha (the modal should be closed automatically) and send the form again. Check that now the form is successfully submitted. Now login in the site and open the feedback created before (the one with the captcha). Check that the captcha works fine in there too.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Sprint:
      Moodle Mobile 3.4.2

      Description

      Right now the signup page shows an image returned by the auth_email_get_signup_settings WebService. We should check if we're able to use the recaptcha JS lib to show a better recaptcha.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    19/Mar/18