From c9c24ff3ca001e23c94f023012e242ee0171750f Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 1 Mar 2010 08:49:00 +0000 Subject: [PATCH] Allow change of password without script in Create/Update Company. --- CHANGELOG.txt | 4 ++++ admin/create_coy.php | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ea70728..3c50622 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +01-Mar-2010 Joe Hung +! Allow change of password without script in Create/Update Company. +$ /admin/create_coy.php + 28-Feb-2010 Joe Hunt # Fixed a non esisting voiding of Work Order Advanced and a couple of bugs in the same operation. And a fix according to Vramak on the forum. diff --git a/admin/create_coy.php b/admin/create_coy.php index c3bfe48..52fd8ac 100644 --- a/admin/create_coy.php +++ b/admin/create_coy.php @@ -139,6 +139,17 @@ function handle_submit() remove_connection($id); return false; } + } else { + if ($_GET['c'] = 'u') { + $conn = $db_connections[$id]; + if (($db = db_create_db($conn)) == 0) + { + display_error(_("Error connecting to Database: ") . $conn['dbname'] . _(", Please correct it")); + $error = true; + } else { + db_query("UPDATE ".$conn['tbpref']."users set password = '".md5($_POST['admpassword']). "' WHERE user_id = 'admin'"); + } + } } $error = write_config_db($new); if ($error == -1) -- 2.30.2