-
Bug
-
Resolution: Fixed
-
Minor
-
3.1.0
-
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
Moodle Mobile 3.1.1
The dialog with the message "Your authentication token is invalid or has expired, you have to reconnect to the site. You need to log in to the site in a browser window." is shown more than once when a token is expired. This happens when a fixed URL is set in config.json, and login is done via a browser window. This is similar to MOBILE-1425.
Steps to reproduce:
- Set the type of login to "Via a browser window" in the local plugin settings
- Build a custom app with a fixed URL in www/config.json (parameter "siteurl").
- Install and launch the app in a device.
- Log in with any user.
- Delete the token created for this user from the mdl_external_tokens table.
- Pull to refresh the list of courses.
- The dialog with text "Your authentication token is invalid or has expired [...]" is shown. Click "OK" and enter the username / password in the browser.
Result:
The same dialog is shown again. If you click "Cancel" you can continue to use the app as normal, already logged in. If you click "OK" the browser window is launched again.
This happens on Android, I have not tested other platforms.