diff --git a/400-SOURCECODE/AIAHTML5.API/Models/Users.cs b/400-SOURCECODE/AIAHTML5.API/Models/Users.cs index 9f1c730..a9e1b17 100644 --- a/400-SOURCECODE/AIAHTML5.API/Models/Users.cs +++ b/400-SOURCECODE/AIAHTML5.API/Models/Users.cs @@ -542,28 +542,24 @@ namespace AIAHTML5.API.Models objUserContext.Modules = getAllModulesList(); objResponse.AddData(LoginConst.USER_CONTEXT, objUserContext); - SessionManager.GetInstance().AddSession((int)0, (int)objLicenseRow.Id, (byte)intEditionId); + // SessionManager.GetInstance().AddSession((int)0, (int)objLicenseRow.Id, (byte)intEditionId); - //SessionManager.GetInstance().AddSession(userRow.Id, int.Parse(accountTransactInfo.licenseId), byte.Parse(accountTransactInfo.licenseEditionId)); - //accountTransactInfo.licenseId = Convert.ToInt32(objLicEdition[LoginConst.LICENSE_ID]).ToString(); - Hashtable arrModuleList = LicenseHelper.GetInstance().GetAllModuleByLicenseId(objLicenseRow.Id); - if (arrModuleList[9].Equals(true)) { - SessionManager.GetInstance().AddModSession("ModuleNameIP10", "IP10"); - } + // Hashtable arrModuleList = LicenseHelper.GetInstance().GetAllModuleByLicenseId(objLicenseRow.Id); + //if (arrModuleList[9].Equals(true)) { + // SessionManager.GetInstance().AddModSession("ModuleNameIP10", "IP10"); + //} - logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, 0, strSiteIP, strEdition, strUrlReferer); + //logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, 0, strSiteIP, strEdition, strUrlReferer); } else { - logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.LICENSE_INACTIVE, strSiteIP, Convert.ToString(intEditionId), strUrlReferer); + // logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.LICENSE_INACTIVE, strSiteIP, Convert.ToString(intEditionId), strUrlReferer); intErrorID = ErrorHelper.E_LICENCE_IS_INACTIVE; - strStatus = GlobalConstant.STATUS_NOT_OK; + strStatus = AIAConstants.STATUS_NOT_OK; } } else { - //intErrorID = ErrorDescription(strAcccountNumber, (byte)intEditionId, strSiteIP, strUrlReferer); - //strStatus = GlobalConstant.STATUS_NOT_OK; - + intErrorID = ErrorHelper.E_EDITION_NOT_LINKED_WITH_SITE; - strStatus = GlobalConstant.STATUS_NOT_OK; + strStatus = AIAConstants.STATUS_NOT_OK; } } objResponse.ErrorCode = intErrorID;