From efd335ca90e7d9a2da1d2f52c70f16170ee9362f Mon Sep 17 00:00:00 2001 From: raortegar Date: Tue, 4 Feb 2025 14:44:02 +0100 Subject: [PATCH] MDL-84351 tool_mfa: Fix access to guide page when MFA login --- admin/tool/mfa/guide.php | 2 +- admin/tool/mfa/templates/guide_link.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/tool/mfa/guide.php b/admin/tool/mfa/guide.php index 709515157e2..1c63b6861a0 100644 --- a/admin/tool/mfa/guide.php +++ b/admin/tool/mfa/guide.php @@ -29,7 +29,7 @@ require_once(__DIR__ . '/../../../config.php'); $PAGE->set_context(\context_system::instance()); $PAGE->set_url(new moodle_url('/admin/tool/mfa/guide.php')); $PAGE->set_title(get_string('guidance', 'tool_mfa')); -$PAGE->set_pagelayout('standard'); +$PAGE->set_pagelayout('secure'); // If guidance page isn't enabled, just redir back to home. if (!get_config('tool_mfa', 'guidance')) { diff --git a/admin/tool/mfa/templates/guide_link.mustache b/admin/tool/mfa/templates/guide_link.mustache index 512203bd68e..63d4c0f63c7 100644 --- a/admin/tool/mfa/templates/guide_link.mustache +++ b/admin/tool/mfa/templates/guide_link.mustache @@ -23,6 +23,6 @@ { } }} - + {{#str}} guidance, tool_mfa {{/str}}