[Vtigercrm-commits] [vtiger-commits] r9059 - /vtigercrm/trunk/soap/wordplugin.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Aug 21 10:53:46 EDT 2006


Author: richie
Date: Mon Aug 21 08:53:39 2006
New Revision: 9059

Log:
Issue in Login to word plugin has been fixed --Jeri

Modified:
    vtigercrm/trunk/soap/wordplugin.php

Modified: vtigercrm/trunk/soap/wordplugin.php
==============================================================================
--- vtigercrm/trunk/soap/wordplugin.php (original)
+++ vtigercrm/trunk/soap/wordplugin.php Mon Aug 21 08:53:39 2006
@@ -307,8 +307,25 @@
 
 
 function create_session($user_name, $password)
-{
-	return "TempSessionID";	
+{ 
+  	global $adb;
+	require_once('modules/Users/User.php');
+	$objuser = new User();
+	if($password != "" && $user_name != '')
+	{
+		$objuser->column_fields['user_name'] = $user_name;
+		$objuser->load_user($password);
+		if($objuser->is_authenticated())
+		{
+		  return "TempSessionID";
+		}else
+		{
+			return "false";
+		}
+	}else
+	{
+			return "false";
+	}
 }
 
 function end_session($user_name)





More information about the vtigercrm-commits mailing list