This commit is contained in:
mmrbnjd
2024-04-05 17:43:11 +03:30
parent 4eb04aef14
commit c439f88650
7 changed files with 175 additions and 52 deletions

View File

@@ -42,7 +42,7 @@ namespace Back.Controllers
{
var resultValidationmodel = await _mobilevalidation.ValidateAsync(model.Mobile);
if (!resultValidationmodel.IsValid)
return BadRequest(resultValidationmodel.Errors);
return BadRequest(resultValidationmodel.Errors.Select(s=>s.ErrorMessage ).ToList());
return Ok(await _sBase.CreateCsrAndPrivateKey(model));
}
[HttpPost("ReadPublicKeyFromCER")]