Browse Source

Passagem de logintoken na página principal (exigência de segurança do Moodle 3.6)

MOODLE_36_STABLE
Matheus Garcia 6 years ago
parent
commit
4bced6d898
  1. 3
      layout/frontpage_ilb.php
  2. 3
      templates/frontpage_ilb.mustache

3
layout/frontpage_ilb.php

@ -99,7 +99,8 @@ if (isloggedin()) {
'logo_saberes_xl' => $OUTPUT->image_url('logo_saberes_xl', 'theme'),
'output' => $OUTPUT,
'bodyattributes' => $bodyattributes,
'moodle_url' => $CFG->wwwroot
'moodle_url' => $CFG->wwwroot,
'logintoken' => s(\core\session\manager::get_login_token())
];
}

3
templates/frontpage_ilb.mustache

@ -163,6 +163,7 @@
<h4 style="color: #0F5688;">Validar Certificado</h4>
<p style="padding-top: 5%;">Digite o código do certificado para verificar:</p>
<form class="loginform" name="cert" method="post" action="blocks/verify_certificate/index.php">
<input type="text" name="certnumber" id="certnumber" size="10" value="" style="width:100%;">
<input type="hidden" name="list" id="list" value="8">
<div class="pull-right" style="padding-top: 5%;">
@ -732,6 +733,8 @@
{{^username}}
<div class="col-xs-12 col-md-4">
<form class="loginform" id="login" method="post" action="login/index.php">
<input type="hidden" name="logintoken" value="{{logintoken}}">
<div class="col-xs-12" style="background-color: #F7F7F7; border: 1px solid #E6E6E6; border-bottom: 0;">
<h4 style="color: #0F5688; border: 0;">ACESSO</h4>
<div class="c1 fld username">

Loading…
Cancel
Save