1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 18:04:43 +02:00

MDL-78408 core: fix restoration of anchor to wantsurl during login

This commit is contained in:
Jake Dallimore 2023-06-07 14:13:57 +08:00
parent 84bb5725f8
commit df95eace29
No known key found for this signature in database

@ -116,6 +116,8 @@
<a href="{{signupurl}}" class="sr-only">{{#str}} tocreatenewaccount {{/str}}</a>
{{/cansignup}}
<form class="login-form" action="{{loginurl}}" method="post" id="login">
<input id="anchor" type="hidden" name="anchor" value="">
<script>document.getElementById('anchor').value = location.hash;</script>
<input type="hidden" name="logintoken" value="{{logintoken}}">
<div class="login-form-username form-group">
<label for="username" class="sr-only">