diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-08-01 19:58:03 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-08-01 19:58:03 -0700 |
commit | 3208068bbd28cd50be5559662e33284c97e43b53 (patch) | |
tree | 703d8129d6e2292eed00bc29bba1be5a975b685f /samples/OAuthAuthorizationServer/Controllers/AccountController.cs | |
parent | 7a700c1d1933a3a38f311bb0b2fcb7a96b122b0a (diff) | |
download | DotNetOpenAuth-3208068bbd28cd50be5559662e33284c97e43b53.zip DotNetOpenAuth-3208068bbd28cd50be5559662e33284c97e43b53.tar.gz DotNetOpenAuth-3208068bbd28cd50be5559662e33284c97e43b53.tar.bz2 |
Now StyleCop clean.
Diffstat (limited to 'samples/OAuthAuthorizationServer/Controllers/AccountController.cs')
-rw-r--r-- | samples/OAuthAuthorizationServer/Controllers/AccountController.cs | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/samples/OAuthAuthorizationServer/Controllers/AccountController.cs b/samples/OAuthAuthorizationServer/Controllers/AccountController.cs index 1361376..73d5999 100644 --- a/samples/OAuthAuthorizationServer/Controllers/AccountController.cs +++ b/samples/OAuthAuthorizationServer/Controllers/AccountController.cs @@ -1,28 +1,19 @@ -namespace OAuthAuthorizationServer.Controllers { - using System; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - using System.Linq; - using System.Security.Principal; - using System.Web; - using System.Web.Mvc; - using System.Web.Routing; - using System.Web.Security; - - using DotNetOpenAuth.OpenId; - using DotNetOpenAuth.OpenId.RelyingParty; - - using OAuthAuthorizationServer.Models; - - using DotNetOpenAuth.Messaging; - +namespace OAuthAuthorizationServer.Controllers {
+ using System;
+ using System.Web.Mvc;
+ using System.Web.Security;
+
+ using DotNetOpenAuth.Messaging;
+ using DotNetOpenAuth.OpenId;
+ using DotNetOpenAuth.OpenId.RelyingParty;
+
+ using OAuthAuthorizationServer.Models;
+
[HandleError] public class AccountController : Controller { - // ************************************** // URL: /Account/LogOn // ************************************** - public ActionResult LogOn() { return View(); } @@ -36,7 +27,7 @@ request.AddCallbackArguments("returnUrl", returnUrl); return request.RedirectingResponse.AsActionResult(); } else { - ModelState.AddModelError("", "The identifier you supplied is not recognized as a valid OpenID Identifier."); + ModelState.AddModelError(string.Empty, "The identifier you supplied is not recognized as a valid OpenID Identifier."); } } @@ -52,8 +43,8 @@ case AuthenticationStatus.Authenticated: FormsAuthentication.SetAuthCookie(response.ClaimedIdentifier, false); return this.Redirect(returnUrl); - default: - ModelState.AddModelError("", "An error occurred during login."); + default:
+ ModelState.AddModelError(string.Empty, "An error occurred during login."); break; } } @@ -64,7 +55,6 @@ // ************************************** // URL: /Account/LogOff // ************************************** - public ActionResult LogOff() { FormsAuthentication.SignOut(); |