Surrounding ModelState with the newly introduced SimpleValidationModel type
This commit is contained in:
@@ -704,7 +704,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
ModelState.AddModelError(memberName, passwordChangeResult.Result.ChangeError.ErrorMessage);
|
||||
}
|
||||
|
||||
return new ValidationErrorResult(ModelState);
|
||||
return new ValidationErrorResult(new SimpleValidationModel(ModelState.ToErrorDictionary()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user