summaryrefslogtreecommitdiffstats
path: root/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-03-07 20:20:54 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-03-07 20:20:54 -0800
commit473084ea15b48b0a921db009bb8de6dfe714a0c8 (patch)
tree8811a2358ff8780e9d6ecfb1cecdce0be29f2bcf /projecttemplates/MvcRelyingParty/Controllers/AccountController.cs
parent1b4ca4a61deec6f823340fb7b22e0223835f9433 (diff)
downloadDotNetOpenAuth-473084ea15b48b0a921db009bb8de6dfe714a0c8.zip
DotNetOpenAuth-473084ea15b48b0a921db009bb8de6dfe714a0c8.tar.gz
DotNetOpenAuth-473084ea15b48b0a921db009bb8de6dfe714a0c8.tar.bz2
The MVC OpenID selector now appears in a jQuery popup dialog.
Woot.
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Controllers/AccountController.cs')
-rw-r--r--projecttemplates/MvcRelyingParty/Controllers/AccountController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs b/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs
index af0cbb8..33217e9 100644
--- a/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs
+++ b/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs
@@ -93,7 +93,7 @@
/// because some OpenID positive assertions messages otherwise look like
/// hack attempts and result in errors when validation is turned on.
/// </remarks>
- [AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post), ValidateInput(false)]
+ [AcceptVerbs(HttpVerbs.Post), ValidateInput(false)]
public ActionResult LogOnPostAssertion(string openid_openidAuthData) {
IAuthenticationResponse response;
if (!string.IsNullOrEmpty(openid_openidAuthData)) {
@@ -114,7 +114,7 @@
case AuthenticationStatus.Authenticated:
var token = RelyingPartyLogic.User.ProcessUserLogin(response);
this.FormsAuth.SignIn(token.ClaimedIdentifier, false);
- string returnUrl = response.GetUntrustedCallbackArgument("returnUrl");
+ string returnUrl = Request.Form["returnUrl"];
if (!String.IsNullOrEmpty(returnUrl)) {
return Redirect(returnUrl);
} else {