-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.2
-
MOODLE_31_STABLE
-
MOODLE_32_STABLE
-
MDL-56739-master -
If a new user account is created using the Mobile app, the confirmation e-mail should launch the app (and log-in the user) after the confirmation process is finished.
This will require the following changes:
- Pass two new parameters to auth_email_signup_user: (appservice, appurlscheme)
- Modify the auth_plugin_base->user_signup function to allow a new parameter: $confirmationurl (so we can indicate what URL to use when confirming a user)
- Modify the login/confirm.php to support a new parameter $urltogo . To redirect the user to tool/mobile/launch.php after is confirmed
The process is:
- When a user is created via the mobile app, we'll pass two additional parameters: appservice, appurlscheme
- The WS auth_email_signup_user will check if they are not empty, in that case when doing the $authplugin->user_signup($user, false); a new parameter $confirmationurl will be passed, it will point to the current confirmation URL but passing an additional parameter $urltogo that will redirect to tool/mobile/launch.php passing appservice, appurlscheme as parameters
- login/confirm.php will check if an $urltogo is set and we redirect the browser to it after the user is confirmed. In that way, the app will be launched via the standard tool/mobile/launch.php
- caused a regression
-
MDL-57278 New users getting “error/moodle/invalidconfirmdata when clicking to confirm
- Closed