Added scaffolded Login page for Identity

- Also updated the _LoginPartial to use the new page
This commit is contained in:
Eric Fleming
2019-02-15 21:54:35 -05:00
parent 1a5cb50ecc
commit fbde5dae90
9 changed files with 215 additions and 2 deletions

View File

@@ -114,11 +114,13 @@ namespace Microsoft.eShopWeb.Web
{
options.Conventions.Add(new RouteTokenTransformerConvention(
new SlugifyParameterTransformer()));
}
)
.AddRazorPagesOptions(options =>
{
options.Conventions.AuthorizePage("/Basket/Checkout");
options.AllowAreas = true;
})
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
@@ -164,7 +166,6 @@ namespace Microsoft.eShopWeb.Web
{
options.Cookie.HttpOnly = true;
options.ExpireTimeSpan = TimeSpan.FromHours(1);
options.LoginPath = "/Account/Signin";
options.LogoutPath = "/Account/Signout";
options.Cookie = new CookieBuilder
{