summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyMvc
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OpenIdRelyingPartyMvc')
-rw-r--r--samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs1
-rw-r--r--samples/OpenIdRelyingPartyMvc/Views/User/LoginPopup.aspx10
2 files changed, 6 insertions, 5 deletions
diff --git a/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs b/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
index c0478b1..fd22389 100644
--- a/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
+++ b/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
@@ -34,6 +34,7 @@
return View("Login");
}
+ [ValidateInput(false)]
public ActionResult Authenticate(string returnUrl) {
var response = openid.GetResponse();
if (response == null) {
diff --git a/samples/OpenIdRelyingPartyMvc/Views/User/LoginPopup.aspx b/samples/OpenIdRelyingPartyMvc/Views/User/LoginPopup.aspx
index 67006fa..e7bc18a 100644
--- a/samples/OpenIdRelyingPartyMvc/Views/User/LoginPopup.aspx
+++ b/samples/OpenIdRelyingPartyMvc/Views/User/LoginPopup.aspx
@@ -28,7 +28,7 @@
if (box.style.display != 'none') {
box.focus();
}
- },
+ }
});
$('#loggedOut').dialog({
@@ -38,15 +38,15 @@
resizable: false,
closeOnEscape: true,
buttons: {
- "Ok": function() { $(this).dialog('close'); },
- },
+ "Ok": function() { $(this).dialog('close'); }
+ }
});
$('#loginAction').click(function() {
$('#openidlogin').dialog('open');
return false;
});
-
+
$('#logoutAction').click(function() {
// TODO: asynchronously log out.
document.setClaimedIdentifier();
@@ -120,7 +120,7 @@
box.focus();
}
this.lastIdentifierTemplate = identifierTemplate;
- }
+ };
$('#loginButton').click(function() {
completeLogin();