git.iko.soy/typeable/oauth2-proxy
on master help sign in
Add URL fragment to sign-in form
f74ad56Chris Hundt
templates.go+10
@@ -129,6 +129,16 @@ func getTemplates() *template.Template {
129 </form>
129 </form>
130 </div>
130 </div>
131 {{ end }}
131 {{ end }}
132+ <script>
133+ if (window.location.hash) {
134+ (function() {
135+ var inputs = document.getElementsByName('rd');
136+ for (var i = 0; i < inputs.length; i++) {
137+ inputs[i].value += window.location.hash;
138+ }
139+ })();
140+ }
141+ </script>
132 <footer>
142 <footer>
133 Secured with <a href="https://github.com/bitly/oauth2_proxy#oauth2_proxy">OAuth2 Proxy</a> version {{.Version}}
143 Secured with <a href="https://github.com/bitly/oauth2_proxy#oauth2_proxy">OAuth2 Proxy</a> version {{.Version}}
134 </footer>
144 </footer>