diff --git a/admin/tool/mfa/classes/hook/after_user_passed_mfa.php b/admin/tool/mfa/classes/hook/after_user_passed_mfa.php index dbc537f0af9..0ed557a62fa 100644 --- a/admin/tool/mfa/classes/hook/after_user_passed_mfa.php +++ b/admin/tool/mfa/classes/hook/after_user_passed_mfa.php @@ -22,12 +22,13 @@ use core\hook\stoppable_trait; /** * Allow plugins to callback as soon possible after user has passed MFA. * - * @package core + * @package tool_mfa * @copyright 2024 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class after_user_passed_mfa implements described_hook, - \Psr\EventDispatcher\StoppableEventInterface { +class after_user_passed_mfa implements + described_hook, + \Psr\EventDispatcher\StoppableEventInterface { use stoppable_trait; /** diff --git a/admin/tool/mobile/classes/local/hooks/user/after_complete_login.php b/admin/tool/mobile/classes/local/hooks/user/after_complete_login.php index 43823e7e4ac..3c8cfaf7d25 100644 --- a/admin/tool/mobile/classes/local/hooks/user/after_complete_login.php +++ b/admin/tool/mobile/classes/local/hooks/user/after_complete_login.php @@ -24,7 +24,6 @@ namespace tool_mobile\local\hooks\user; * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class after_complete_login { - /** * Callback to recover $SESSION->wantsurl. * @@ -36,7 +35,6 @@ class after_complete_login { // Check if the user is doing a mobile app launch, if that's the case, ensure $SESSION->wantsurl is correctly set. if (!NO_MOODLE_COOKIES && !empty($_COOKIE['tool_mobile_launch'])) { if (empty($SESSION->wantsurl) || strpos($SESSION->wantsurl, '/tool/mobile/launch.php') === false) { - $params = json_decode($_COOKIE['tool_mobile_launch'], true); $SESSION->wantsurl = (new \moodle_url("/$CFG->admin/tool/mobile/launch.php", $params))->out(false); } diff --git a/lib/classes/hook/user/after_complete_login.php b/lib/classes/hook/user/after_complete_login.php index 0377cfd8b61..ccb661934c5 100644 --- a/lib/classes/hook/user/after_complete_login.php +++ b/lib/classes/hook/user/after_complete_login.php @@ -26,8 +26,9 @@ use core\hook\stoppable_trait; * @copyright 2024 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class after_complete_login implements described_hook, - \Psr\EventDispatcher\StoppableEventInterface { +class after_complete_login implements + described_hook, + \Psr\EventDispatcher\StoppableEventInterface { use stoppable_trait; /**