在ASP.NET MVC应用程序中,Identity登录页面默认位于“/Account/Login”路径下。这可以在“App_Start/Startup.Auth.cs”文件中的“ConfigureAuth”方法中进行配置,如下所示:
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login")
});
在上述代码示例中,我们设置了“LoginPath”为“/Account/Login”,因此Identity登录页面将指向该路径。可以将此路径更改为您想要的任何路径。