-
Bug
-
Resolution: Fixed
-
Minor
-
2.9
-
-
MOODLE_29_STABLE
-
MOODLE_29_STABLE
The dialog with the message "You need to log in to the site in a browser window." is shown twice when a fixed URL is set in config.json, and login is done via a browser window.
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.
- The dialog with text "You need to log in to the site in a browser window." is shown. Click "OK" and enter the username / password in the browser.
Result:
The same dialog is showm again, although you can see the "My courses" page is loaded in the background (see the attached screenshot). 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.