summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-09-09 07:04:26 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-09-09 07:04:26 -0700
commit637fb7dd7c44f4a36e45bc18122cf035038c775f (patch)
tree1ef5f741c76b06fb1c2ecc0ebe1e64053a40d9f2 /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
parentc0f1c849e0ee21f3d7f126cd7b56fb4d3bfaf3ce (diff)
parent6513d4d2b23e925d12b79e3864ea610c538a48e9 (diff)
downloadDotNetOpenAuth-637fb7dd7c44f4a36e45bc18122cf035038c775f.zip
DotNetOpenAuth-637fb7dd7c44f4a36e45bc18122cf035038c775f.tar.gz
DotNetOpenAuth-637fb7dd7c44f4a36e45bc18122cf035038c775f.tar.bz2
Merge branch 'v3.2' into gsa
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