diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-08-11 07:30:41 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-08-11 07:30:41 -0700 |
commit | 6ca475e013c985da63de553a7b630442d39fc4e5 (patch) | |
tree | 4d500a29d0005efd15075b4ad57a27deebb68d50 | |
parent | 32d6e0355635b7de1696ec2ea044b8f79db13378 (diff) | |
download | DotNetOpenAuth-6ca475e013c985da63de553a7b630442d39fc4e5.zip DotNetOpenAuth-6ca475e013c985da63de553a7b630442d39fc4e5.tar.gz DotNetOpenAuth-6ca475e013c985da63de553a7b630442d39fc4e5.tar.bz2 |
Non-functional cleanup.
-rw-r--r-- | samples/OAuthAuthorizationServer/Controllers/HomeController.cs | 20 | ||||
-rw-r--r-- | samples/OAuthAuthorizationServer/Web.config | 5 | ||||
-rw-r--r-- | samples/OAuthResourceServer/MasterPage.master | 4 |
3 files changed, 12 insertions, 17 deletions
diff --git a/samples/OAuthAuthorizationServer/Controllers/HomeController.cs b/samples/OAuthAuthorizationServer/Controllers/HomeController.cs index 78075cf..0922581 100644 --- a/samples/OAuthAuthorizationServer/Controllers/HomeController.cs +++ b/samples/OAuthAuthorizationServer/Controllers/HomeController.cs @@ -1,12 +1,12 @@ -namespace OAuthAuthorizationServer.Controllers {
- using System.Configuration;
- using System.Data.SqlClient;
- using System.IO;
- using System.Linq;
- using System.Web.Mvc;
-
- using OAuthAuthorizationServer.Code;
-
+namespace OAuthAuthorizationServer.Controllers { + using System.Configuration; + using System.Data.SqlClient; + using System.IO; + using System.Linq; + using System.Web.Mvc; + + using OAuthAuthorizationServer.Code; + [HandleError] public class HomeController : Controller { public ActionResult Index() { @@ -44,7 +44,7 @@ dc.SubmitChanges(); ViewData["Success"] = true; - } catch (System.Data.SqlClient.SqlException ex) { + } catch (SqlException ex) { ViewData["Error"] = string.Join("<br>", ex.Errors.OfType<SqlError>().Select(er => er.Message).ToArray()); } diff --git a/samples/OAuthAuthorizationServer/Web.config b/samples/OAuthAuthorizationServer/Web.config index c2c9ec1..b7f079a 100644 --- a/samples/OAuthAuthorizationServer/Web.config +++ b/samples/OAuthAuthorizationServer/Web.config @@ -40,11 +40,6 @@ </dotNetOpenAuth> <log4net> - <appender name="TracePageAppender" type="OAuthResourceServer.Code.TracePageAppender, OAuthResourceServer"> - <layout type="log4net.Layout.PatternLayout"> - <conversionPattern value="%date (GMT%date{%z}) [%thread] %-5level %logger - %message%newline"/> - </layout> - </appender> <!-- Setup the root category, add the appenders and set the default level --> <root> <level value="INFO"/> diff --git a/samples/OAuthResourceServer/MasterPage.master b/samples/OAuthResourceServer/MasterPage.master index a038594..3147153 100644 --- a/samples/OAuthResourceServer/MasterPage.master +++ b/samples/OAuthResourceServer/MasterPage.master @@ -8,12 +8,12 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> - <title>DotNetOpenAuth OAuth 2.0 Authorization Server sample</title> + <title>DotNetOpenAuth OAuth 2.0 Resource Server sample</title> <asp:ContentPlaceHolder ID="head" runat="server"/> </head> <body> <form id="form1" runat="server"> - <h1>DotNetOpenAuth OAuth 2.0 Authorization Server sample</h1> + <h1>DotNetOpenAuth OAuth 2.0 Resource Server sample</h1> <div> <asp:ContentPlaceHolder ID="Body" runat="server"> </asp:ContentPlaceHolder> |