Skip to content

Commit

Permalink
MDL-63183 auth_shibboleth: Add hidden login token in guest login form
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta authored and Jenkins committed Nov 6, 2018
1 parent 6dfe428 commit 5f9955b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth/shibboleth/index_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h2><?php
</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") ?>" />
Expand Down

0 comments on commit 5f9955b

Please sign in to comment.