diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-05 22:12:49 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-05 22:12:49 -0700 |
commit | a2bc2163b1741845df8eaf1e6216e74a8a70a278 (patch) | |
tree | 4723eb0b857004b3f16c7ae0f57de08886cd3a0a /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs | |
parent | 6b8ae6879edc652d445e003783775ec6222d8b3d (diff) | |
parent | a1513732aff8dc75c026bef440083bcaafc73b60 (diff) | |
download | DotNetOpenAuth-a2bc2163b1741845df8eaf1e6216e74a8a70a278.zip DotNetOpenAuth-a2bc2163b1741845df8eaf1e6216e74a8a70a278.tar.gz DotNetOpenAuth-a2bc2163b1741845df8eaf1e6216e74a8a70a278.tar.bz2 |
Merge branch 'v3.1' into v3.2
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 784533b..fd22389 100644 --- a/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs +++ b/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs @@ -10,6 +10,8 @@ using DotNetOpenAuth.OpenId.RelyingParty; public class UserController : Controller { + private static OpenIdRelyingParty openid = new OpenIdRelyingParty(); + public ActionResult Index() { if (!User.Identity.IsAuthenticated) { Response.Redirect("/User/Login?ReturnUrl=Index"); @@ -34,7 +36,6 @@ [ValidateInput(false)] public ActionResult Authenticate(string returnUrl) { - var openid = new OpenIdRelyingParty(); var response = openid.GetResponse(); if (response == null) { // Stage 2: user submitting Identifier |