update format

This commit is contained in:
dibakor 2026-07-23 18:25:50 +06:00
parent 1a264523a0
commit 16dcf2351f
2 changed files with 10 additions and 11 deletions

View File

@ -232,9 +232,9 @@ public class GetPasswordPolicyResponse
{ {
public int MinLength { get; set; } public int MinLength { get; set; }
public int MaxLength { get; set; } public int MaxLength { get; set; }
public int IsUppercase { get; set; } public bool IsUppercase { get; set; }
public int IsLowercase { get; set; } public bool IsLowercase { get; set; }
public int IsNumber { get; set; } public bool IsNumber { get; set; }
public int IsSpecialCharacter { get; set; } public bool IsSpecialCharacter { get; set; }
public int PasswordLife { get; set; } public int PasswordLife { get; set; }
} }

View File

@ -990,20 +990,19 @@ public class MobileMasterDataService : IMobileMasterDataService
using TransactionContext tc = await TransactionContext.BeginAsync(_settings.DefaultConnection.ConnectionNode); using TransactionContext tc = await TransactionContext.BeginAsync(_settings.DefaultConnection.ConnectionNode);
try try
{ {
SqlParameter[] p =[];
using (IDataReader dr = await tc.ExecuteReaderSpAsync("dbo.GetPaymentTermsPaginated", parameterValues: p)) using (IDataReader dr = await tc.ExecuteReaderSpAsync("dbo.GetPasswordPolicy"))
{ {
if (dr.Read()) if (dr.Read())
{ {
new GetPasswordPolicyResponse() response=new GetPasswordPolicyResponse()
{ {
MinLength = dr.GetInt32(0), MinLength = dr.GetInt32(0),
MaxLength = dr.GetInt32(1), MaxLength = dr.GetInt32(1),
IsUppercase = dr.GetInt32(2), IsUppercase = dr.GetInt32(2) >0,
IsLowercase = dr.GetInt32(3), IsLowercase = dr.GetInt32(3) > 0,
IsSpecialCharacter = dr.GetInt32(4), IsSpecialCharacter = dr.GetInt32(4) > 0,
IsNumber = dr.GetInt32(5), IsNumber = dr.GetInt32(5) > 0,
PasswordLife = dr.GetInt32(6), PasswordLife = dr.GetInt32(6),
}; };
} }