Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Indirect messages no longer display "Login in progress" buttons to th…
Browse files Browse the repository at this point in the history
…e user if javascript is enabled.
  • Loading branch information
AArnott committed Jun 22, 2009
1 parent af4ba42 commit 8d2ce0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DotNetOpenAuth/Messaging/Channel.cs
Expand Up @@ -67,7 +67,9 @@ public abstract class Channel : IDisposable {
/// </remarks>
private const string IndirectMessageFormPostFormat = @"
<html>
<body onload=""var btn = document.getElementById('submit_button'); btn.disabled = true; btn.value = 'Login in progress'; document.getElementById('openid_message').submit()"">
<head>
</head>
<body onload=""document.body.style.display = 'none'; var btn = document.getElementById('submit_button'); btn.disabled = true; btn.value = 'Login in progress'; document.getElementById('openid_message').submit()"">
<form id=""openid_message"" action=""{0}"" method=""post"" accept-charset=""UTF-8"" enctype=""application/x-www-form-urlencoded"" onSubmit=""var btn = document.getElementById('submit_button'); btn.disabled = true; btn.value = 'Login in progress'; return true;"">
{1}
<input id=""submit_button"" type=""submit"" value=""Continue"" />
Expand Down

0 comments on commit 8d2ce0e

Please sign in to comment.