msg
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Back.Services
|
||||
company.IsActive = true;
|
||||
if (await _CompanyRepo.UpdateAsync(company))
|
||||
{
|
||||
_servSendMsg.SuccessfulRegistration(user.Mobile, $"{user.Mobile};{user.Mobile}");
|
||||
_servSendMsg.SuccessfulRegistration(user.Mobile, user.Mobile,user.Mobile);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Back.Services
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public async Task<int> GenerateCode(VerificationCode code)
|
||||
public async Task<VerificationCode> GenerateCode(VerificationCode code)
|
||||
{
|
||||
code.Code = Random.Shared.Next(1000, 9000);
|
||||
while (await GetVerificationCode(code.Code) != null)
|
||||
@@ -77,8 +77,8 @@ namespace Back.Services
|
||||
|
||||
|
||||
var indb= await _verificationCodeRepo.AddAsync(code);
|
||||
|
||||
return indb.ID;
|
||||
code.ID = indb.ID;
|
||||
return code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user