Added user password validation, Fixed new user localization issue

This commit is contained in:
2025-10-26 21:31:29 +01:00
parent 97592fd9e8
commit b9b3c91f3f
4 changed files with 30 additions and 6 deletions

View File

@@ -63,6 +63,10 @@ public class UsersController : Controller
[HttpPost("Create")]
public async Task<UsersCreateResponseModel> Create([FromBody] UsersCreateRequestModel requestModel)
{
if (requestModel is null)
{
return new() { Success = false, Exception = "The request model is null" };
}
try
{
string? jpegPhoto = requestModel.JpegPhoto;