summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-08-05 22:12:49 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-08-05 22:12:49 -0700
commita2bc2163b1741845df8eaf1e6216e74a8a70a278 (patch)
tree4723eb0b857004b3f16c7ae0f57de08886cd3a0a /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
parent6b8ae6879edc652d445e003783775ec6222d8b3d (diff)
parenta1513732aff8dc75c026bef440083bcaafc73b60 (diff)
downloadDotNetOpenAuth-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.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