Closed twinmind closed 3 years ago
Thanks Alexey, I've just updated the UpdateRequest.cs
model to allow empty strings for all parameters - https://github.com/cornflourblue/aspnet-core-3-signup-verification-api/blob/master/Models/Accounts/UpdateRequest.cs
When running together with react app, editing existing user creates a payload like this
And this results in error like on the screenshot.
If payload is replaced with nulls, i.e.
Then it works fine.
My guess is that the attribute
[MinLength(6)]
onPassword
property inUpdateRequest
model doesn't allow empty string, but is happy with null.