-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.2
-
MOODLE_31_STABLE
-
MOODLE_32_STABLE
-
MDL-56126-master -
In sites where there is a "site policy" and the user hasn't agreed to it we have this scenario:
- We can generate tokens for the user via Web Services
- The user can access to the site via the Mobile app because a token is generated.
- But he can't do anything in the app, he always get a require_login_exception('Policy not agreed')
Required changes:
- Return a proper exception that can be translated (with a code that we can detect in the app), something like: require_login_exception('policynotagreed'), ideally the exception should include in some way the link to the site policy.
- In the app, detect the exception and show the translated message so the user can open the link and review the site policy and a check for indicating that he accept it.
- Develop a new WS that does not call require_login to indicate to Moodle that the user accepted the policy.
I don't see any possible solution, not returning the token at all is not an option because we won't have a way to accept the policy from outside Moodle.
- blocks
-
MOBILE-1812 Accept the site policy in the app
-
- Closed
-
- has been marked as being related by
-
MDL-56822 sitepolicynotagreed error appears on site policy page on clean
-
- Closed
-