Adding scaffolding for Logout page
- Removing Identity route from startup
This commit is contained in:
@@ -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?}");
|
||||
|
||||
Reference in New Issue
Block a user