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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2
    • 3.1.3
    • Others
    • 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.
    • MOODLE_31_STABLE
    • MOODLE_32_STABLE
    • Moodle Mobile 3.2

      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.

            dpalou Dani Palou
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Berta Maroto Berta Maroto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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