mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
@@ -130,7 +130,7 @@ namespace OpenAuth.WebApi
|
||||
// options.SuppressModelStateInvalidFilter = true;
|
||||
|
||||
//启动WebAPI自动模态验证,处理返回值
|
||||
options.InvalidModelStateResponseFactory = context =>
|
||||
options.InvalidModelStateResponseFactory = (ActionContext context) =>
|
||||
{
|
||||
var problems = new CustomBadRequest(context);
|
||||
|
||||
|
Reference in New Issue
Block a user