Skip to content

Commit

Permalink
samlsp: hide the ugly submit button that flashes on the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
kiangj authored and crewjam committed Feb 22, 2017
1 parent 5e201a7 commit 8f75fbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,9 @@ func (req *AuthnRequest) Post(relayState string) []byte {
`<form method="post" action="{{.URL}}" id="SAMLRequestForm">` +
`<input type="hidden" name="SAMLRequest" value="{{.SAMLRequest}}" />` +
`<input type="hidden" name="RelayState" value="{{.RelayState}}" />` +
`<input type="submit" value="Submit" />` +
`<input id="SAMLSubmitButton" type="submit" value="Submit" />` +
`</form>` +
`<script>document.getElementByID('SAMLSubmitButton').style.visibility="hidden";</script>` +
`<script>document.getElementById('SAMLRequestForm').submit();</script>`))
data := struct {
URL string
Expand Down

0 comments on commit 8f75fbd

Please sign in to comment.