Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2209

Users cannot login if site policy not agreed and email signup is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.4.0
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide
      1. In web as admin, add a site policy to a site with MDL-60005 applied (Site administration > Security > Site policies).
      2. Make sure that email-based self-registration is disabled (Site administration > Plugins > Authentication > Manage authentication).
      3. In the app, add a new account in the site. Check that you're redirected to the view to accept the site policy after you login.
      4. Check that you can accept the site policy and use the app.
      Show
      In web as admin, add a site policy to a site with MDL-60005 applied (Site administration > Security > Site policies). Make sure that email-based self-registration is disabled (Site administration > Plugins > Authentication > Manage authentication). In the app, add a new account in the site. Check that you're redirected to the view to accept the site policy after you login. Check that you can accept the site policy and use the app.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Sprint:
      Moodle Mobile 3.4.0

      Description

      Reported in the forum:

      https://moodle.org/mod/forum/discuss.php?d=355738

      If a user hasn't accepted the site policy and the site has the WebService core_user_agree_site_policy, he is redirected to the page to accept the site policy. However, the only way to retrieve the site policy is using the WebService auth_email_get_signup_settings. If email signup isn't enabled, this WS call fails and the user is sent to the sites list page. This means he is unable to login at all and the errors shown don't make much sense.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Juan Leyva
              Tester:
              Berta Maroto
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Nov/17