Adding scaffolding for Logout page

- Removing Identity route from startup
This commit is contained in:
Eric Fleming
2019-06-20 20:41:00 -04:00
parent ba8bdfad84
commit d5446de65f
5 changed files with 55 additions and 7 deletions

View File

@@ -174,7 +174,7 @@ namespace Microsoft.eShopWeb.Web
options.Cookie.HttpOnly = true;
options.ExpireTimeSpan = TimeSpan.FromHours(1);
options.LoginPath = "/Account/Login";
options.LogoutPath = "/Account/Signout";
options.LogoutPath = "/Account/Logout";
options.Cookie = new CookieBuilder
{
IsEssential = true // required for auth to work without explicit user consent; adjust to suit your privacy policy
@@ -236,10 +236,6 @@ namespace Microsoft.eShopWeb.Web
app.UseMvc(routes =>
{
routes.MapRoute(
name: "identity",
template: "Identity/{controller=Account}/{action=Register}/{id?}");
routes.MapRoute(
name: "default",
template: "{controller:slugify=Home}/{action:slugify=Index}/{id?}");