diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-27 17:35:55 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-27 17:35:55 -0800 |
commit | 925a9e6b348a48f56cfdc41e9028661026f57ff9 (patch) | |
tree | 908812cc5ac79583c654e6d31bce7dd7947a9c97 /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs | |
parent | 6d386076d8662e81c52b9c61f4f25132e5c380f5 (diff) | |
download | DotNetOpenAuth-925a9e6b348a48f56cfdc41e9028661026f57ff9.zip DotNetOpenAuth-925a9e6b348a48f56cfdc41e9028661026f57ff9.tar.gz DotNetOpenAuth-925a9e6b348a48f56cfdc41e9028661026f57ff9.tar.bz2 |
Fixed login on OpenIdRelyingPartyMvc sample, retargeting to MVC 4.
Diffstat (limited to 'samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs')
-rw-r--r-- | samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs b/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs index 02f3c3d..41a090f 100644 --- a/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs +++ b/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs @@ -55,7 +55,8 @@ switch (response.Status) { case AuthenticationStatus.Authenticated: Session["FriendlyIdentifier"] = response.FriendlyIdentifierForDisplay; - FormsAuthentication.SetAuthCookie(response.ClaimedIdentifier, false); + var cookie = FormsAuthentication.GetAuthCookie(response.ClaimedIdentifier, false); + Response.SetCookie(cookie); if (!string.IsNullOrEmpty(returnUrl)) { return Redirect(returnUrl); } else { |