mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-10 03:14:45 +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;
|
// options.SuppressModelStateInvalidFilter = true;
|
||||||
|
|
||||||
//启动WebAPI自动模态验证,处理返回值
|
//启动WebAPI自动模态验证,处理返回值
|
||||||
options.InvalidModelStateResponseFactory = context =>
|
options.InvalidModelStateResponseFactory = (ActionContext context) =>
|
||||||
{
|
{
|
||||||
var problems = new CustomBadRequest(context);
|
var problems = new CustomBadRequest(context);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user