...
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user