将services.ConfigureApplicationCookie移到services.AddIdentity之后,最重要的是删除服务中的AddDefaultUI。在此引用
以下是更改默认登录页面的代码:
services.ConfigureApplicationCookie(options =>
{
options.LoginPath = "/Identity/Account/Login";
});
posted @
2023-02-13 21:05
stone8386
阅读(39)
评论()
收藏
举报