mirror of
https://github.com/bitwarden/server
synced 2026-01-04 09:33:40 +00:00
Fix/identity service model validation (#1837)
* Fix indentation * Fix comment * Extract ModelStateValidationFilter add to Indentity MVC opts * Remove unnecessary base constructor call
This commit is contained in:
@@ -58,7 +58,11 @@ namespace Bit.Identity
|
||||
services.AddMemoryCache();
|
||||
|
||||
// Mvc
|
||||
services.AddMvc();
|
||||
// MVC
|
||||
services.AddMvc(config =>
|
||||
{
|
||||
config.Filters.Add(new ModelStateValidationFilterAttribute());
|
||||
});
|
||||
|
||||
if (!globalSettings.SelfHosted)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user