Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion web/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="theme-panel">
<h2 class="theme-heading">Log in to {{ issuer }} </h2>
<div>
<div id="providers">
{{ range $c := .Connectors }}
<div class="theme-form-row">
<a href="{{ $c.URL }}" target="_self">
Expand All @@ -16,4 +16,13 @@ <h2 class="theme-heading">Log in to {{ issuer }} </h2>
</div>
</div>

<script type="text/javascript">
if (window.location.hash) {
var buttons = document.querySelectorAll('#providers a');
buttons.forEach(function(button) {
button.href = button.href + window.location.hash;
});
}
</script>

{{ template "footer.html" . }}
5 changes: 5 additions & 0 deletions web/templates/password.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ <h2 class="theme-heading">Log in to Your Account</h2>
var el = document.querySelector('#submit-login');
el.setAttribute('disabled', 'disabled');
};

if (window.location.hash) {
var form = document.querySelector('form');
form.action = (form.action || '') + window.location.hash;
}
</script>

{{ template "footer.html" . }}
Loading