summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-08-05 22:06:52 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-08-05 22:06:52 -0700
commita1513732aff8dc75c026bef440083bcaafc73b60 (patch)
treec59aa6327aa410e9e8c350ee8cb371b5cffb957f /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
parent2847bf5a7d5103ba8694f6b0347047273646e4ee (diff)
parent0aedb0da7764bc42761384c43404be15063aad40 (diff)
downloadDotNetOpenAuth-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.cs3
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