[Vtigercrm-commits] [vtiger-commits] r7315 - /vtigercrm/trunk/install/5createTables.inc.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 00:51:36 EDT 2006
Author: saraj
Date: Tue Jun 20 22:51:33 2006
New Revision: 7315
Log:
encrypt password during installation removed as it is handled in Save function
Modified:
vtigercrm/trunk/install/5createTables.inc.php
Modified: vtigercrm/trunk/install/5createTables.inc.php
==============================================================================
--- vtigercrm/trunk/install/5createTables.inc.php (original)
+++ vtigercrm/trunk/install/5createTables.inc.php Tue Jun 20 22:51:33 2006
@@ -71,7 +71,7 @@
$user->column_fields["user_name"] = 'admin';
$user->column_fields["status"] = 'Active';
$user->column_fields["is_admin"] = 'on';
- $user->column_fields["user_password"] = $user->encrypt_password($admin_password);
+ $user->column_fields["user_password"] = $admin_password;
$user->column_fields["tz"] = 'Europe/Berlin';
$user->column_fields["holidays"] = 'de,en_uk,fr,it,us,';
$user->column_fields["workdays"] = '0,1,2,3,4,5,6,';
@@ -115,8 +115,9 @@
$user = new User();
$user->column_fields["last_name"] = 'StandardUser';
$user->column_fields["user_name"] = 'standarduser';
+ $user->column_fields["is_admin"] = 'off';
$user->column_fields["status"] = 'Active';
- $user->column_fields["user_password"] = $user->encrypt_password('standarduser');
+ $user->column_fields["user_password"] = 'standarduser';
$user->column_fields["tz"] = 'Europe/Berlin';
$user->column_fields["holidays"] = 'de,en_uk,fr,it,us,';
$user->column_fields["workdays"] = '0,1,2,3,4,5,6,';
@@ -140,7 +141,7 @@
$role_id = $db->query_result($role_result,0,"roleid");
$user->column_fields["roleid"] = $role_id;
- $user->save('Users');
+ $user->save('Users');
//Creating the flat vtiger_files
createUserPrivilegesfile($user->id);
@@ -170,12 +171,6 @@
}
-// populate vtiger_users vtiger_table
-//$uid = $db->getUniqueID("users");
-//$sql_stmt1 = "insert into vtiger_users(id,user_name,user_password,last_name,email1,date_format) values(".$uid.",'standarduser','stX/AHHNK/Gkw','standarduser','standarduser at standard.user.com','yyyy-mm-dd')";
-//$db->query($sql_stmt1) or die($app_strings['ERR_CREATING_TABLE'].mysql_error());
-
-
// create and populate combo tables
require_once('include/PopulateComboValues.php');
$combo = new PopulateComboValues();
More information about the vtigercrm-commits
mailing list