This forum is not used anymore. Please ask new questions to Stack Overflow: https://stackoverflow.com/questions/tag ... ort=newest (use aspnetboilerplate tag).
By huanghm
#5760 bug重现如下:
1. 后台登录的方法为
[HttpPost]
[ValidateAntiForgeryToken]
public JsonResult Login() { }
2.页面访问登录页面 http://admin.xx.com/login
3.__RequestVerificationToken的cookie清除或直接清除浏览器所有的cookie.
4.点击登录,框架会提示错误,错误在 Abp.Web.Mvc.Controllers.AbpController类里面的
#region Exception handling

protected override void OnException(ExceptionContext context)
{
//Log exception
if (_wrapResultAttribute.LogError)
{
LogHelper.LogException(Logger, context.Exception);
}
}

这个_wrapResultAttribute是null