[Vtigercrm-commits] [vtiger-commits] r10609 - /vtigercrm/branches/5.0.3/soap/vtigerolservice.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 10 02:28:01 EDT 2007
Author: jerrydgeorge
Date: Tue Apr 10 00:27:53 2007
New Revision: 10609
Log:
version field has been added to the login function to check the version compatibility between vtiger and outlook plugin
Modified:
vtigercrm/branches/5.0.3/soap/vtigerolservice.php
Modified: vtigercrm/branches/5.0.3/soap/vtigerolservice.php
==============================================================================
--- vtigercrm/branches/5.0.3/soap/vtigerolservice.php (original)
+++ vtigercrm/branches/5.0.3/soap/vtigerolservice.php Tue Apr 10 00:27:53 2007
@@ -360,11 +360,18 @@
}
}
-function LoginToVtiger($userid,$password)
-{
+function LoginToVtiger($userid,$password,$version)
+{
+ global $log;
global $adb;
+ $log->DEBUG("Entered into vtigerCRM with userid".$userid." and Version".$version);
+ require_once('vtigerversion.php');
+ if($version != $vtiger_current_version)
+ {
+ $log->DEBUG("outlook plugin version is not compatible with the vtigerCRM");
+ return "VERSION";
+ }
require_once('modules/Users/Users.php');
-
$return_access = "FALSE";
$objuser = new Users();
@@ -375,16 +382,17 @@
$objuser->load_user($password);
if($objuser->is_authenticated())
{
- $return_access = "TRUE";
+ $return_access = "TRUES";
}else
{
- $return_access = "FALSE";
+ $return_access = "LOGIN";
}
}else
{
//$server->setError("Invalid username and/or password");
$return_access = "FALSE";
}
+$log->DEBUG("The return access to outlook was ".$return_access." from vtigerCRM");
$objuser = $objuser;
return $return_access;
}
More information about the vtigercrm-commits
mailing list