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