This commit is contained in:
mmrbnjd
2025-07-24 11:35:39 +03:30
parent 1e36f06d82
commit 4977be215c
3 changed files with 19 additions and 4 deletions

View File

@@ -149,7 +149,15 @@ namespace Hushian.Application.Services
if(await _CompanyRepository.UPDATEBool(anyCompany))
{
response.Success = true;
response.Value = new AuthResponse();
response.Value = new AuthResponse()
{
Fullname = anyCompany.FullName,
Id = anyCompany.ID,
Role = "Company",
img = anyCompany.logo,
MobileOrUserName = anyCompany.Mobile,
Token = new JwtSecurityTokenHandler().WriteToken(await _authService.GenerateToken(anyCompany.Mobile, anyCompany.ID, "Company"))
};
}
else
{