Commit bcfbbecce390b2b09fa45adb8dbd3db21f369a6e
1 parent
d0cc41a6
added code
Showing
1 changed file
with
10 additions
and
14 deletions
400-SOURCECODE/AIAHTML5.API/Models/Users.cs
... | ... | @@ -542,28 +542,24 @@ namespace AIAHTML5.API.Models |
542 | 542 | objUserContext.Modules = getAllModulesList(); |
543 | 543 | |
544 | 544 | objResponse.AddData(LoginConst.USER_CONTEXT, objUserContext); |
545 | - SessionManager.GetInstance().AddSession((int)0, (int)objLicenseRow.Id, (byte)intEditionId); | |
545 | + // SessionManager.GetInstance().AddSession((int)0, (int)objLicenseRow.Id, (byte)intEditionId); | |
546 | 546 | |
547 | 547 | |
548 | - //SessionManager.GetInstance().AddSession(userRow.Id, int.Parse(accountTransactInfo.licenseId), byte.Parse(accountTransactInfo.licenseEditionId)); | |
549 | - //accountTransactInfo.licenseId = Convert.ToInt32(objLicEdition[LoginConst.LICENSE_ID]).ToString(); | |
550 | - Hashtable arrModuleList = LicenseHelper.GetInstance().GetAllModuleByLicenseId(objLicenseRow.Id); | |
551 | - if (arrModuleList[9].Equals(true)) { | |
552 | - SessionManager.GetInstance().AddModSession("ModuleNameIP10", "IP10"); | |
553 | - } | |
548 | + // Hashtable arrModuleList = LicenseHelper.GetInstance().GetAllModuleByLicenseId(objLicenseRow.Id); | |
549 | + //if (arrModuleList[9].Equals(true)) { | |
550 | + // SessionManager.GetInstance().AddModSession("ModuleNameIP10", "IP10"); | |
551 | + //} | |
554 | 552 | |
555 | - logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, 0, strSiteIP, strEdition, strUrlReferer); | |
553 | + //logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, 0, strSiteIP, strEdition, strUrlReferer); | |
556 | 554 | } else { |
557 | - logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.LICENSE_INACTIVE, strSiteIP, Convert.ToString(intEditionId), strUrlReferer); | |
555 | + // logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.LICENSE_INACTIVE, strSiteIP, Convert.ToString(intEditionId), strUrlReferer); | |
558 | 556 | intErrorID = ErrorHelper.E_LICENCE_IS_INACTIVE; |
559 | - strStatus = GlobalConstant.STATUS_NOT_OK; | |
557 | + strStatus = AIAConstants.STATUS_NOT_OK; | |
560 | 558 | } |
561 | 559 | } else { |
562 | - //intErrorID = ErrorDescription(strAcccountNumber, (byte)intEditionId, strSiteIP, strUrlReferer); | |
563 | - //strStatus = GlobalConstant.STATUS_NOT_OK; | |
564 | - | |
560 | + | |
565 | 561 | intErrorID = ErrorHelper.E_EDITION_NOT_LINKED_WITH_SITE; |
566 | - strStatus = GlobalConstant.STATUS_NOT_OK; | |
562 | + strStatus = AIAConstants.STATUS_NOT_OK; | |
567 | 563 | } |
568 | 564 | } |
569 | 565 | objResponse.ErrorCode = intErrorID; | ... | ... |