diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-01 22:37:17 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-01 22:37:17 -0800 |
commit | 0a1042ae9ff54c5b3523e1cf4210c1fade4a9144 (patch) | |
tree | 2b9966e8bc51dfab2bf6e4c893177f2cadb34773 /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs | |
parent | 9a90c9cf0884ad7e69de90e9d4dd6a2e50ef86bd (diff) | |
parent | 8aa6439564b60e762e66e0055600a0f1a2348803 (diff) | |
download | DotNetOpenAuth-0a1042ae9ff54c5b3523e1cf4210c1fade4a9144.zip DotNetOpenAuth-0a1042ae9ff54c5b3523e1cf4210c1fade4a9144.tar.gz DotNetOpenAuth-0a1042ae9ff54c5b3523e1cf4210c1fade4a9144.tar.bz2 |
Merge branch 'v3.2' into mono2
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 |