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

Allow the user to change the password or add the missing profile fields via the app - auto-login

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.2
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide

      Please notice that you could see a "Call to undefined function..." error when opening the InAppBrowser sometimes. This should be fixed in MDL-56942, it only happened once to me.

      1. In web, login as admin in a Moodle 3.2 that supports auto-login (https, private tokens created).
      2. Go to a user profile, edit the profile and enable "Force password change".
      3. Install the app in a device and login with the user modified in the previous step. Check that you can login, but right after that a modal is shown telling you that you need to change your password. Check that InAppBrowser is opened with the page to change your password (you should be automatically authenticated). Please remember the time this step was done.
      4. Change the password, close the InAppBrowser and do a Pull To Refresh in the app. Check that everything works as it should. When you're done, delete the site in the app.
      5. Now go to the Moodle's database and delete the lastname of the user above, leaving it empty.
      6. Before proceeding, make sure that 6 minutes have passed since the last autologin (step 3). This is to make sure you can request a new autologin key.
      7. Back in the app, login again with that user. Check that you can login, but right after that a modal is shown telling you that you need to complete your profile. Check that InAppBrowser is opened with the page to edit your profile (you should be automatically authenticated).
      8. Enter a lastname for the user and save the changes. Once you're done, close the InAppBrowser and do a Pull To Refresh in the app. Check that everything works as it should.
      Show
      Please notice that you could see a " Call to undefined function... " error when opening the InAppBrowser sometimes. This should be fixed in MDL-56942 , it only happened once to me. In web, login as admin in a Moodle 3.2 that supports auto-login (https, private tokens created). Go to a user profile, edit the profile and enable "Force password change". Install the app in a device and login with the user modified in the previous step. Check that you can login, but right after that a modal is shown telling you that you need to change your password. Check that InAppBrowser is opened with the page to change your password (you should be automatically authenticated). Please remember the time this step was done. Change the password, close the InAppBrowser and do a Pull To Refresh in the app. Check that everything works as it should. When you're done, delete the site in the app. Now go to the Moodle's database and delete the lastname of the user above, leaving it empty. Before proceeding, make sure that 6 minutes have passed since the last autologin (step 3). This is to make sure you can request a new autologin key. Back in the app, login again with that user. Check that you can login, but right after that a modal is shown telling you that you need to complete your profile. Check that InAppBrowser is opened with the page to edit your profile (you should be automatically authenticated). Enter a lastname for the user and save the changes. Once you're done, close the InAppBrowser and do a Pull To Refresh in the app. Check that everything works as it should.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Sprint:
      Moodle Mobile 3.2

      Description

      Once MDL-56159 is integrated, we'll be able to capture the exceptions related to forcepasswordchange and usernotfully setup and open via auto-login the change-password and edit profile page so the user can add the missing data or new password.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Dec/16