我使用asp.net 5和Identity 3来验证
用户,但它总是
重定向到默认的
登录URL,即“帐户/
登录”.我想改变它,但似乎没有任何地方可以设置这个选项.我在Configure()
方法中使用AddIdentity().请帮忙.
谢谢
app.UseCookieAuthentication(options =>
{
options.LoginPath = new PathString("/Admin/Login");
options.logoutPath = new PathString("/Admin/logoff");
},IdentityOptions.ApplicationCookieAuthenticationScheme
);
原文链接:https://www.f2er.com/aspnet/247092.html