Skip to content
This repository
Browse code

code drop

  • Loading branch information...
commit c4f879104b9a5684833b3cf0a9c1d2af9a994d0b 1 parent 404ff75
Mike authored February 14, 2012
4  src/Yom.Web/Controllers/AccountController.cs
@@ -190,7 +190,7 @@ public ActionResult LogOn(string openid_identifier, string returnUrl)
190 190
 
191 191
                             FormsAuthentication.SetAuthCookie(response.ClaimedIdentifier, true);
192 192
                             //FormsService.SignIn(response.ClaimedIdentifier, false /* createPersistentCookie */);
193  
-                            return RedirectToAction("Index", "home");
  193
+                            return RedirectToAction("Details", "home");
194 194
                         }
195 195
                         ViewData["Message"] = "Error creating new user";
196 196
                         return View();
@@ -204,7 +204,7 @@ public ActionResult LogOn(string openid_identifier, string returnUrl)
204 204
                         return Redirect(returnUrl);
205 205
                     }
206 206
 
207  
-                    return RedirectToAction("Index", "Home");
  207
+                    return RedirectToAction("Details", "Home");
208 208
                 case AuthenticationStatus.Canceled:
209 209
                     ViewData["Message"] = "Canceled at provider";
210 210
                     return View();
11  src/Yom.Web/Controllers/HomeController.cs
@@ -3,6 +3,7 @@
3 3
 using System.Linq;
4 4
 using System.Web;
5 5
 using System.Web.Mvc;
  6
+using System.Web.Security;
6 7
 
7 8
 namespace Yom.Web.Controllers
8 9
 {
@@ -10,6 +11,9 @@ public class HomeController : Controller
10 11
     {
11 12
         public ActionResult Index()
12 13
         {
  14
+            if (Membership.GetUser() != null)
  15
+                return RedirectToAction("Details");
  16
+
13 17
             ViewBag.Message = "Welcome to ASP.NET MVC!";
14 18
 
15 19
             return View();
@@ -20,6 +24,13 @@ public ActionResult About()
20 24
             return View();
21 25
         }
22 26
 
  27
+        public ActionResult Details()
  28
+        {
  29
+            
  30
+
  31
+            return View();
  32
+        }
  33
+
23 34
         
24 35
     }
25 36
 }
85  src/Yom.Web/Views/Account/LogOn.cshtml
@@ -2,49 +2,56 @@
2 2
     Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
3 3
     ViewBag.Title = "Authenticate";
4 4
 }
5  
-<h2>
6  
-    Sign In to YOM
7  
-</h2>
8  
-<p>
9  
-    Welcome to YOM (You Owe Me). Yom has the following features:
10  
-</p>
11  
-<dl title="Feature list">
12  
-    <dt>Debts</dt>
13  
-    <dd>
14  
-        Tracks information about who owes you money and how much. Keeps track about your
15  
-        debts.</dd>
16  
-    <dt>Reconciliation</dt>
17  
-    <dd>
18  
-        Tracks information about who pays his debts and if your debts are payed.</dd>
19  
-</dl>
20  
-@*<p>
  5
+<div data-role="page" id="one">
  6
+    <div data-role="header">
  7
+        <h1>
  8
+            Sign In to YOM
  9
+        </h1>
  10
+    </div>
  11
+    <!-- /header -->
  12
+    <div data-role="content">
  13
+        <p>
  14
+            Welcome to YOM (You Owe Me). Yom has the following features:
  15
+        </p>
  16
+        <dl title="Feature list">
  17
+            <dt>Debts</dt>
  18
+            <dd>
  19
+                Tracks information about who owes you money and how much. Keeps track about your
  20
+                debts.</dd>
  21
+            <dt>Reconciliation</dt>
  22
+            <dd>
  23
+                Tracks information about who pays his debts and if your debts are payed.</dd>
  24
+        </dl>
  25
+        @*<p>
21 26
         Please enter your username and password. <%: Html.ActionLink("Register", "Register") %> if you don't have an account.
22 27
     </p>*@
23  
-@using (Html.BeginForm(null, null, new { returnUrl = Request.QueryString["returnUrl"] }, FormMethod.Post, new { id = "openid_form", data_ajax = "false" }))
24  
-{
25  
-    @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
26  
-    <div>
27  
-        <fieldset>
28  
-            <legend>Account Information</legend>
29  
-            <div class="openid_choice">
30  
-                <p>
31  
-                    Please click your account provider:</p>
32  
-                <div id="openid_btns">
33  
-                </div>
34  
-            </div>
35  
-            <div id="openid_input_area">
36  
-                @Html.TextBox("openid_identifier")
37  
-                <input type="submit" value="Log On" />
  28
+        @using (Html.BeginForm(null, null, new { returnUrl = Request.QueryString["returnUrl"] }, FormMethod.Post, new { id = "openid_form", data_ajax = "false" }))
  29
+        {
  30
+            @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
  31
+            <div>
  32
+                <fieldset>
  33
+                    <legend>Account Information</legend>
  34
+                    <div class="openid_choice">
  35
+                        <p>
  36
+                            Please click your account provider:</p>
  37
+                        <div id="openid_btns">
  38
+                        </div>
  39
+                    </div>
  40
+                    <div id="openid_input_area">
  41
+                        @Html.TextBox("openid_identifier")
  42
+                        <input type="submit" value="Log On" />
  43
+                    </div>
  44
+                    <noscript>
  45
+                        <p>
  46
+                            OpenID is service that allows you to log-on to many different websites using a single
  47
+                            indentity. Find out <a href="http://openid.net/what/">more about OpenID</a> and
  48
+                            <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
  49
+                    </noscript>
  50
+                </fieldset>
38 51
             </div>
39  
-            <noscript>
40  
-                <p>
41  
-                    OpenID is service that allows you to log-on to many different websites using a single
42  
-                    indentity. Find out <a href="http://openid.net/what/">more about OpenID</a> and
43  
-                    <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
44  
-            </noscript>
45  
-        </fieldset>
  52
+        }
46 53
     </div>
47  
-}
  54
+</div>
48 55
 @section JSContent{
49 56
     <script type="text/javascript" src="@Url.Content("~/Scripts/openid-jquery.js")"></script>
50 57
     <script type="text/javascript" src="@Url.Content("~/Scripts/openid-en.js")"></script>
52  src/Yom.Web/Views/Home/Details.cshtml
... ...
@@ -0,0 +1,52 @@
  1
+@{
  2
+    Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
  3
+}
  4
+<!-- Start of first page: #one -->
  5
+<div data-role="page" id="one">
  6
+    <div data-role="header">
  7
+    @RenderPage("~/Views/Shared/DefaultHeader.Mobile.cshtml")
  8
+    </div>
  9
+    <!-- /header -->
  10
+    <div data-role="content">
  11
+        <fieldset class="ui-grid-a">
  12
+            <legend></legend>
  13
+            <div class="ui-block-a">
  14
+                <a href="#owe" data-role="button">Owe</a>
  15
+            </div>
  16
+            <div class="ui-block-b">
  17
+                <a href="#pay" data-role="button">Pay</a>
  18
+            </div>
  19
+            <div class="ui-block-a">
  20
+                <a href="#report" data-role="button">Report</a></div>
  21
+        </fieldset>
  22
+    </div>
  23
+    <!-- /content -->
  24
+    <div data-role="footer" data-theme="d">
  25
+        <h4>
  26
+            Page Footer</h4>
  27
+    </div>
  28
+    <!-- /footer -->
  29
+</div>
  30
+<!-- /page one -->
  31
+<!-- Start of second page: #two -->
  32
+<div data-role="page" id="owe" >
  33
+    <div data-role="header">
  34
+    @RenderPage("~/Views/Shared/DefaultHeader.Mobile.cshtml")
  35
+    </div>
  36
+    <!-- /header -->
  37
+    <div data-role="content" >
  38
+        <ul data-role="listview" data-inset="true">
  39
+            <li>@Html.ActionLink("You Owe Me Money","Create","YouOweMe")</li>
  40
+        </ul>
  41
+        @*@Html.ActionLink("You Owe Me", "Create", "YouOweMe", null, new { data_role = "button" })*@
  42
+    </div>
  43
+    <!-- /content -->
  44
+    <div data-role="footer">
  45
+        <h4>
  46
+            Page Footer</h4>
  47
+    </div>
  48
+    <!-- /footer -->
  49
+</div>
  50
+<!-- /page two -->
  51
+<!-- Start of third page: #popup -->
  52
+
60  src/Yom.Web/Views/Home/Index.cshtml
... ...
@@ -1,52 +1,24 @@
1 1
 @{
2 2
     Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
3 3
 }
4  
-<!-- Start of first page: #one -->
5  
-<div data-role="page" id="one">
  4
+<div data-role="page">
6 5
     <div data-role="header">
7  
-    @RenderPage("~/Views/Shared/DefaultHeader.Mobile.cshtml")
  6
+        <h1>test</h1>
8 7
     </div>
9  
-    <!-- /header -->
10 8
     <div data-role="content">
11  
-        <fieldset class="ui-grid-a">
12  
-            <legend></legend>
13  
-            <div class="ui-block-a">
14  
-                <a href="#owe" data-role="button">Owe</a>
15  
-            </div>
16  
-            <div class="ui-block-b">
17  
-                <a href="#pay" data-role="button">Pay</a>
18  
-            </div>
19  
-            <div class="ui-block-a">
20  
-                <a href="#report" data-role="button">Report</a></div>
21  
-        </fieldset>
22  
-    </div>
23  
-    <!-- /content -->
24  
-    <div data-role="footer" data-theme="d">
25  
-        <h4>
26  
-            Page Footer</h4>
27  
-    </div>
28  
-    <!-- /footer -->
29  
-</div>
30  
-<!-- /page one -->
31  
-<!-- Start of second page: #two -->
32  
-<div data-role="page" id="owe" >
33  
-    <div data-role="header">
34  
-    @RenderPage("~/Views/Shared/DefaultHeader.Mobile.cshtml")
35  
-    </div>
36  
-    <!-- /header -->
37  
-    <div data-role="content" >
38  
-        <ul data-role="listview" data-inset="true">
39  
-            <li>@Html.ActionLink("You Owe Me Money","Create","YouOweMe")</li>
40  
-        </ul>
41  
-        @*@Html.ActionLink("You Owe Me", "Create", "YouOweMe", null, new { data_role = "button" })*@
42  
-    </div>
43  
-    <!-- /content -->
44  
-    <div data-role="footer">
45  
-        <h4>
46  
-            Page Footer</h4>
  9
+        <p>
  10
+            Welcome to YOM (You Owe Me). Yom has the following features:
  11
+        </p>
  12
+        <dl title="Feature list">
  13
+            <dt>Debts</dt>
  14
+            <dd>
  15
+                Tracks information about who owes you money and how much. Keeps track about your
  16
+                debts.</dd>
  17
+            <dt>Reconciliation</dt>
  18
+            <dd>
  19
+                Tracks information about who pays his debts and if your debts are payed.</dd>
  20
+        </dl>
  21
+
  22
+         @Html.ActionLink("Log On", "LogOn", "Account", null, new { data_role="button", data_ajax="false"})
47 23
     </div>
48  
-    <!-- /footer -->
49 24
 </div>
50  
-<!-- /page two -->
51  
-<!-- Start of third page: #popup -->
52  
-
2  src/Yom.Web/Views/Shared/DefaultHeader.Mobile.cshtml
... ...
@@ -1,4 +1,4 @@
1  
-<a href="@Url.Action("Index", "Home")" data-icon="home" class="ui-btn-left" data-ajax="false" >Home</a>
  1
+<a href="@Url.Action("Details", "Home")" data-icon="home" class="ui-btn-left" data-ajax="false" >Home</a>
2 2
 <h1>
3 3
     Page Titlex</h1>
4 4
 <a href="@Url.Action("LogOff", "Account")" class="ui-btn-right" data-ajax="false">Logout</a>
6  src/Yom.Web/Views/Shared/_Layout.Result.Mobile.cshtml
@@ -2,13 +2,11 @@
2 2
     Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
3 3
 }
4 4
 <div data-role="page">
5  
-    <div data-role="header">
6  
-    </div>
  5
+    
7 6
     <!-- /header -->
8 7
     <div data-role="content">
9 8
         @RenderBody()
10 9
     </div>
11 10
     <!-- /content -->
12  
-    <div data-role="footer">
13  
-    </div>
  11
+    
14 12
 </div>
4  src/Yom.Web/Views/Shared/_Layout.Single.Mobile.cshtml
@@ -19,7 +19,7 @@
19 19
         @RenderBody()
20 20
     </div>
21 21
     <!-- /content -->
22  
-    <div data-role="footer" >
23  
-    </div>
  22
+    @*<div data-role="footer" >
  23
+    </div>*@
24 24
     <!-- /footer -->
25 25
 </div>
289  src/Yom.Web/Web.config
@@ -4,153 +4,174 @@
4 4
   http://go.microsoft.com/fwlink/?LinkId=152368
5 5
   -->
6 6
 <configuration>
7  
-  <configSections>
8  
-    <!--<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />-->
9  
-    <section name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection" requirePermission="false" allowLocation="true" />
10  
-  </configSections>
11  
-  <connectionStrings>
12  
-    <add name="YomContainer" connectionString="data source=.;initial catalog=Yom;User ID=sa;Password=2cx0mbs;App=EntityFramework"
13  
-      providerName="System.Data.SqlClient" />
14  
-  </connectionStrings>
15  
-  <appSettings>
16  
-    <add key="webpages:Version" value="1.0.0.0" />
17  
-    <add key="ClientValidationEnabled" value="true" />
18  
-    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
19  
-  </appSettings>
20  
-  <location path="Scripts">
21  
-    <system.web>
22  
-      <authorization>
23  
-        <allow users="*" />
24  
-      </authorization>
25  
-    </system.web>
26  
-  </location>
27  
-  <location path="Content">
28  
-    <system.web>
29  
-      <authorization>
30  
-        <allow users="*" />
31  
-      </authorization>
32  
-    </system.web>
33  
-  </location>
34  
-    <location path="Test.aspx" allowOverride="false">
  7
+    <configSections>
  8
+        <!--<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />-->
  9
+        <section name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection" requirePermission="false" allowLocation="true" />
  10
+    </configSections>
  11
+    <connectionStrings>
  12
+        <add name="YomContainer" connectionString="data source=.;initial catalog=Yom;User ID=sa;Password=2cx0mbs;App=EntityFramework"
  13
+          providerName="System.Data.SqlClient" />
  14
+    </connectionStrings>
  15
+    <appSettings>
  16
+        <add key="webpages:Version" value="1.0.0.0" />
  17
+        <add key="ClientValidationEnabled" value="true" />
  18
+        <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  19
+    </appSettings>
  20
+
  21
+
  22
+
  23
+    <location path="Scripts">
  24
+        <system.web>
  25
+            <authorization>
  26
+                <allow users="*" />
  27
+            </authorization>
  28
+        </system.web>
  29
+    </location>
  30
+    <location path="Content">
  31
+        <system.web>
  32
+            <authorization>
  33
+                <allow users="*" />
  34
+            </authorization>
  35
+        </system.web>
  36
+    </location>
  37
+    <location path="Test.aspx" >
  38
+        <system.web>
  39
+            <authorization>
  40
+                <allow users="*" />
  41
+            </authorization>
  42
+        </system.web>
  43
+    </location>
  44
+    <location path="Default.aspx" >
  45
+        <system.web>
  46
+            <authorization>
  47
+                <allow users="*" />
  48
+            </authorization>
  49
+        </system.web>
  50
+    </location>
  51
+    <location path="Home/Index" >
  52
+        <system.web>
  53
+            <authorization>
  54
+                <allow users="*" />
  55
+            </authorization>
  56
+        </system.web>
  57
+    </location>
  58
+    <location path="favicon.ico">
35 59
         <system.web>
36 60
             <authorization>
37 61
                 <allow users="*" />
38 62
             </authorization>
39 63
         </system.web>
40 64
     </location>
41  
-  <location path="favicon.ico">
  65
+
  66
+
  67
+
  68
+
42 69
     <system.web>
43  
-      <authorization>
44  
-        <allow users="*" />
45  
-      </authorization>
  70
+        <customErrors mode="Off"/>
  71
+        <compilation debug="true" targetFramework="4.0">
  72
+            <assemblies>
  73
+                <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  74
+                <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  75
+                <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  76
+                <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  77
+                <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  78
+                <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  79
+            </assemblies>
  80
+        </compilation>
  81
+        <authentication mode="Forms">
  82
+            <forms loginUrl="~/Account/LogOn" timeout="2880" />
  83
+        </authentication>
  84
+        <authorization>
  85
+            <deny users="?" />
  86
+        </authorization>
  87
+        <membership>
  88
+            <providers>
  89
+                <clear />
  90
+                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="YomContainer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
  91
+            </providers>
  92
+        </membership>
  93
+        <profile>
  94
+            <providers>
  95
+                <clear />
  96
+                <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="YomContainer" applicationName="/" />
  97
+            </providers>
  98
+        </profile>
  99
+        <roleManager enabled="false">
  100
+            <providers>
  101
+                <clear />
  102
+                <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="YomContainer" applicationName="/" />
  103
+                <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
  104
+            </providers>
  105
+        </roleManager>
  106
+        <pages>
  107
+            <namespaces>
  108
+                <add namespace="System.Web.Helpers" />
  109
+                <add namespace="System.Web.Mvc" />
  110
+                <add namespace="System.Web.Mvc.Ajax" />
  111
+                <add namespace="System.Web.Mvc.Html" />
  112
+                <add namespace="System.Web.Routing" />
  113
+                <add namespace="System.Web.WebPages" />
  114
+            </namespaces>
  115
+        </pages>
46 116
     </system.web>
47  
-  </location>
48  
-  <system.web>
49  
-    <customErrors mode="Off"/>
50  
-    <compilation debug="true" targetFramework="4.0">
51  
-      <assemblies>
52  
-        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
53  
-        <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
54  
-        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
55  
-        <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
56  
-        <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
57  
-        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
58  
-      </assemblies>
59  
-    </compilation>
60  
-    <authentication mode="Forms">
61  
-      <forms loginUrl="~/Account/LogOn" timeout="2880" />
62  
-    </authentication>
63  
-    <authorization>
64  
-      <deny users="?" />
65  
-    </authorization>
66  
-    <membership>
67  
-      <providers>
68  
-        <clear />
69  
-        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="YomContainer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
70  
-      </providers>
71  
-    </membership>
72  
-    <profile>
73  
-      <providers>
74  
-        <clear />
75  
-        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="YomContainer" applicationName="/" />
76  
-      </providers>
77  
-    </profile>
78  
-    <roleManager enabled="false">
79  
-      <providers>
80  
-        <clear />
81  
-        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="YomContainer" applicationName="/" />
82  
-        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
83  
-      </providers>
84  
-    </roleManager>
85  
-    <pages>
86  
-      <namespaces>
87  
-        <add namespace="System.Web.Helpers" />
88  
-        <add namespace="System.Web.Mvc" />
89  
-        <add namespace="System.Web.Mvc.Ajax" />
90  
-        <add namespace="System.Web.Mvc.Html" />
91  
-        <add namespace="System.Web.Routing" />
92  
-        <add namespace="System.Web.WebPages" />
93  
-      </namespaces>
94  
-    </pages>
95  
-  </system.web>
96  
-  <system.webServer>
97  
-    <validation validateIntegratedModeConfiguration="false" />
98  
-    <modules runAllManagedModulesForAllRequests="true" />
99  
-  </system.webServer>
100  
-  <runtime>
101  
-    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
102  
-      <dependentAssembly>
103  
-        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
104  
-        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
105  
-        <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
106  
-      </dependentAssembly>
107  
-    </assemblyBinding>
108  
-    <legacyHMACWarning enabled="0" />
109  
-  </runtime>
110  
-  <uri>
111  
-    <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
  117
+    <system.webServer>
  118
+        <validation validateIntegratedModeConfiguration="false" />
  119
+        <modules runAllManagedModulesForAllRequests="true" />
  120
+    </system.webServer>
  121
+    <runtime>
  122
+        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  123
+            <dependentAssembly>
  124
+                <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  125
+                <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
  126
+                <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
  127
+            </dependentAssembly>
  128
+        </assemblyBinding>
  129
+        <legacyHMACWarning enabled="0" />
  130
+    </runtime>
  131
+    <uri>
  132
+        <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
112 133
 	     which is necessary for OpenID urls with unicode characters in the domain/host name. 
113 134
 	     It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
114  
-    <idn enabled="All" />
115  
-    <iriParsing enabled="true" />
116  
-  </uri>
117  
-  <system.net>
118  
-    <defaultProxy enabled="true" />
119  
-    <settings>
120  
-      <!-- This setting causes .NET to check certificate revocation lists (CRL) 
  135
+        <idn enabled="All" />
  136
+        <iriParsing enabled="true" />
  137
+    </uri>
  138
+    <system.net>
  139
+        <defaultProxy enabled="true" />
  140
+        <settings>
  141
+            <!-- This setting causes .NET to check certificate revocation lists (CRL) 
121 142
 			     before trusting HTTPS certificates.  But this setting tends to not 
122 143
 			     be allowed in shared hosting environments. -->
123  
-      <!--<servicePointManager checkCertificateRevocationList="true"/>-->
124  
-    </settings>
125  
-  </system.net>
126  
-  <dotNetOpenAuth>
127  
-    <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
128  
-    <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
129  
-    <!-- You may also refer to README.Bin.html for instructions on enabling Intellisense for this section. -->
130  
-    <openid>
131  
-      <relyingParty>
132  
-        <security requireSsl="false">
133  
-          <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
134  
-          <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
  144
+            <!--<servicePointManager checkCertificateRevocationList="true"/>-->
  145
+        </settings>
  146
+    </system.net>
  147
+    <dotNetOpenAuth>
  148
+        <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
  149
+        <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
  150
+        <!-- You may also refer to README.Bin.html for instructions on enabling Intellisense for this section. -->
  151
+        <openid>
  152
+            <relyingParty>
  153
+                <security requireSsl="false">
  154
+                    <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
  155
+                    <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
135 156
 						<add endpoint="https://www.google.com/accounts/o8/ud" />
136 157
 					</trustedProviders>-->
137  
-        </security>
138  
-        <behaviors>
139  
-          <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
  158
+                </security>
  159
+                <behaviors>
  160
+                    <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
140 161
 					     with OPs that use Attribute Exchange (in various formats). -->
141  
-          <add type="DotNetOpenAuth.OpenId.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
142  
-        </behaviors>
143  
-      </relyingParty>
144  
-    </openid>
145  
-    <messaging>
146  
-      <untrustedWebRequest>
147  
-        <whitelistHosts>
148  
-          <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
149  
-          <!--<add name="localhost" />-->
150  
-        </whitelistHosts>
151  
-      </untrustedWebRequest>
152  
-    </messaging>
153  
-    <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
154  
-    <reporting enabled="true" />
155  
-  </dotNetOpenAuth>
  162
+                    <add type="DotNetOpenAuth.OpenId.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth" />
  163
+                </behaviors>
  164
+            </relyingParty>
  165
+        </openid>
  166
+        <messaging>
  167
+            <untrustedWebRequest>
  168
+                <whitelistHosts>
  169
+                    <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
  170
+                    <!--<add name="localhost" />-->
  171
+                </whitelistHosts>
  172
+            </untrustedWebRequest>
  173
+        </messaging>
  174
+        <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
  175
+        <reporting enabled="true" />
  176
+    </dotNetOpenAuth>
156 177
 </configuration>
19  src/Yom.Web/Yom.Web.csproj
@@ -98,6 +98,13 @@
98 98
     <Compile Include="Controllers\ReferenceUserController.cs" />
99 99
     <Compile Include="Controllers\ManagementController.cs" />
100 100
     <Compile Include="Controllers\YouOweMeController.cs" />
  101
+    <Compile Include="default.aspx.cs">
  102
+      <DependentUpon>default.aspx</DependentUpon>
  103
+      <SubType>ASPXCodeBehind</SubType>
  104
+    </Compile>
  105
+    <Compile Include="default.aspx.designer.cs">
  106
+      <DependentUpon>default.aspx</DependentUpon>
  107
+    </Compile>
101 108
     <Compile Include="Global.asax.cs">
102 109
       <DependentUpon>Global.asax</DependentUpon>
103 110
     </Compile>
@@ -126,13 +133,6 @@
126 133
     <Compile Include="Test.aspx.designer.cs">
127 134
       <DependentUpon>Test.aspx</DependentUpon>
128 135
     </Compile>
129  
-    <Compile Include="WebForm1.aspx.cs">
130  
-      <DependentUpon>WebForm1.aspx</DependentUpon>
131  
-      <SubType>ASPXCodeBehind</SubType>
132  
-    </Compile>
133  
-    <Compile Include="WebForm1.aspx.designer.cs">
134  
-      <DependentUpon>WebForm1.aspx</DependentUpon>
135  
-    </Compile>
136 136
   </ItemGroup>
137 137
   <ItemGroup>
138 138
     <Content Include="Content\images\ajax-loader.png" />
@@ -205,6 +205,7 @@
205 205
     <Content Include="Content\themes\base\minified\jquery.ui.slider.min.css" />
206 206
     <Content Include="Content\themes\base\minified\jquery.ui.tabs.min.css" />
207 207
     <Content Include="Content\themes\base\minified\jquery.ui.theme.min.css" />
  208
+    <Content Include="default.aspx" />
208 209
     <Content Include="Global.asax" />
209 210
     <Content Include="Scripts\jquery-1.6.4-vsdoc.js" />
210 211
     <Content Include="Scripts\jquery-1.6.4.js" />
@@ -254,7 +255,6 @@
254 255
     <Content Include="Views\Shared\_LogOnPartial.cshtml" />
255 256
     <Content Include="Views\Shared\_Layout.cshtml" />
256 257
     <Content Include="Views\Web.config" />
257  
-    <Content Include="WebForm1.aspx" />
258 258
   </ItemGroup>
259 259
   <ItemGroup>
260 260
     <ProjectReference Include="..\Yom.Lib\Yom.Lib.csproj">
@@ -279,6 +279,7 @@
279 279
     <Content Include="Views\Shared\EditorTemplates\Decimal.cshtml" />
280 280
     <Content Include="Views\YouOweMe\Success.cshtml" />
281 281
     <Content Include="Views\Shared\_Layout.Result.Mobile.cshtml" />
  282
+    <Content Include="Views\Home\Details.cshtml" />
282 283
   </ItemGroup>
283 284
   <ItemGroup>
284 285
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
@@ -302,7 +303,7 @@
302 303
           <AutoAssignPort>True</AutoAssignPort>
303 304
           <DevelopmentServerPort>3260</DevelopmentServerPort>
304 305
           <DevelopmentServerVPath>/</DevelopmentServerVPath>
305  
-          <IISUrl>http://localhost:3260/</IISUrl>
  306
+          <IISUrl>http://localhost:3260/Yom</IISUrl>
306 307
           <NTLMAuthentication>False</NTLMAuthentication>
307 308
           <UseCustomServer>False</UseCustomServer>
308 309
           <CustomServerUrl>
2  src/Yom.Web/WebForm1.aspx → src/Yom.Web/default.aspx
... ...
@@ -1,4 +1,4 @@
1  
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Yom.Web.WebForm1" %>
  1
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Yom.Web.Default" %>
2 2
 
3 3
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 4
 
3  src/Yom.Web/WebForm1.aspx.cs → src/Yom.Web/default.aspx.cs
@@ -7,10 +7,11 @@
7 7
 
8 8
 namespace Yom.Web
9 9
 {
10  
-    public partial class WebForm1 : System.Web.UI.Page
  10
+    public partial class Default : System.Web.UI.Page
11 11
     {
12 12
         protected void Page_Load(object sender, EventArgs e)
13 13
         {
  14
+            Response.Redirect("~/Home/Index");
14 15
 
15 16
         }
16 17
     }
2  src/Yom.Web/WebForm1.aspx.designer.cs → src/Yom.Web/default.aspx.designer.cs
@@ -11,7 +11,7 @@ namespace Yom.Web
11 11
 {
12 12
 
13 13
 
14  
-    public partial class WebForm1
  14
+    public partial class Default
15 15
     {
16 16
 
17 17
         /// <summary>

0 notes on commit c4f8791

Please sign in to comment.
Something went wrong with that request. Please try again.