diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-05 22:06:52 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-05 22:06:52 -0700 |
commit | a1513732aff8dc75c026bef440083bcaafc73b60 (patch) | |
tree | c59aa6327aa410e9e8c350ee8cb371b5cffb957f /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs | |
parent | 2847bf5a7d5103ba8694f6b0347047273646e4ee (diff) | |
parent | 0aedb0da7764bc42761384c43404be15063aad40 (diff) | |
download | DotNetOpenAuth-a1513732aff8dc75c026bef440083bcaafc73b60.zip DotNetOpenAuth-a1513732aff8dc75c026bef440083bcaafc73b60.tar.gz DotNetOpenAuth-a1513732aff8dc75c026bef440083bcaafc73b60.tar.bz2 |
Merge branch 'v3.0' into v3.1
Conflicts:
build.proj
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 |