MDL-63183 auth_shibboleth: Add hidden login token in guest login form

This commit is contained in:
Jun Pataleta 2018-10-24 10:44:55 +08:00 committed by Jenkins
parent 6dfe428363
commit 5f9955b5a0

View File

@ -54,6 +54,7 @@ if ($show_instructions) {
</div>
<form action="../../login/index.php" method="post" id="guestlogin">
<div class="guestform">
<input type="hidden" name="logintoken" value="<?php echo s(\core\session\manager::get_login_token()); ?>" />
<input type="hidden" name="username" value="guest" />
<input type="hidden" name="password" value="guest" />
<input type="submit" value="<?php print_string("loginguest") ?>" />