This commit is contained in:
mmrbnjd
2025-07-26 11:47:32 +03:30
parent 29107ce9c6
commit c045ace959
10 changed files with 88 additions and 64 deletions

View File

@@ -74,7 +74,7 @@ namespace Hushian.Application.Services
}
else
{
var exper = await _ExperRepository.Get().FirstOrDefaultAsync(f => f.UserName == auth.Username
var exper = await _ExperRepository.Get().Include(inc=>inc.Company).FirstOrDefaultAsync(f => f.UserName == auth.Username
&& f.Password == auth.Password.GetHash() && f.Available);
if (exper == null)
{
@@ -85,7 +85,7 @@ namespace Hushian.Application.Services
Response.Success = true;
Response.Value = new AuthResponse()
{
Fullname = exper.FullName,
Fullname = exper.FullName+" ("+ exper.Company.FullName+")",
Id = exper.ID,
CompanyId = exper.CompanyID,
MobileOrUserName = exper.UserName,

View File

@@ -70,6 +70,8 @@ namespace Hushian.Application.Services
company.Email = model.Email;
company.WebSite = model.WebSite;
company.logo = model.logo;
company.allowBot = model.allowBot;
company.Available = model.Available;
if (await _CompanyRepository.UPDATEBool(company))
{