Merge pull request #199 from hundt/master

Add URL fragment to sign-in form
This commit is contained in:
Jehiah Czebotar 2016-06-20 08:42:36 -04:00 committed by GitHub
commit 3a79827af2

View File

@ -129,6 +129,16 @@ func getTemplates() *template.Template {
</form>
</div>
{{ end }}
<script>
if (window.location.hash) {
(function() {
var inputs = document.getElementsByName('rd');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value += window.location.hash;
}
})();
}
</script>
<footer>
{{ if eq .Footer "-" }}
{{ else if eq .Footer ""}}