summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-08-05 22:38:58 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-08-05 22:38:58 -0700
commit3e440e1b1a7be2eb20358e8b467da46b8afbd5b6 (patch)
tree7374b588f623bfa0899750349e27f168f00a2e30 /samples/OpenIdRelyingPartyMvc/Controllers/UserController.cs
parent0805cca0cc73f0047854604fda78ac439540bd0a (diff)
parenta2bc2163b1741845df8eaf1e6216e74a8a70a278 (diff)
downloadDotNetOpenAuth-3e440e1b1a7be2eb20358e8b467da46b8afbd5b6.zip
DotNetOpenAuth-3e440e1b1a7be2eb20358e8b467da46b8afbd5b6.tar.gz
DotNetOpenAuth-3e440e1b1a7be2eb20358e8b467da46b8afbd5b6.tar.bz2
Merge branch 'v3.2'
Conflicts: tools/DotNetOpenAuth.Versioning.targets tools/Publish.targets
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