summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-02-15 20:58:47 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-02-15 20:58:47 -0800
commit656ef7b1b405d56d986776082a2670c68c415c44 (patch)
tree3ecf4fa27fb85c0ab490d90eac71aefbeb1d2951 /src
parent4c5b64ee0a6706ea48bc94cae1cb1297159f13ef (diff)
downloadDotNetOpenAuth-656ef7b1b405d56d986776082a2670c68c415c44.zip
DotNetOpenAuth-656ef7b1b405d56d986776082a2670c68c415c44.tar.gz
DotNetOpenAuth-656ef7b1b405d56d986776082a2670c68c415c44.tar.bz2
Fixes js error when Submit button is pressed during authentication.
Resolves Google Code Issue 201.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
index ca3250d..9bdce90 100644
--- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
+++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.js
@@ -6,7 +6,7 @@
// Options that can be set on the host page:
//window.openid_visible_iframe = true; // causes the hidden iframe to show up
-//window.openid_trace = true; // causes lots of alert boxes
+//window.openid_trace = true; // causes lots of messages
function trace(msg) {
if (window.openid_trace) {
@@ -301,7 +301,8 @@ function initAjaxOpenId(box, openid_logo_url, dotnetopenid_logo_url, spinner_url
}
box.dnoi_internal.isAuthenticated = function() {
- return box.dnoi_internal.getUserSuppliedIdentifierResults().findSuccessfulRequest() != null;
+ var results = box.dnoi_internal.getUserSuppliedIdentifierResults();
+ return results != null && results.findSuccessfulRequest() != null;
}
box.dnoi_internal.onSubmit = function() {