From cbc0d672b7e2a0668cfa9c9aefc2d044bb12745a Mon Sep 17 00:00:00 2001 From: Dominik Müller <info@profi-webdesign.com> Date: Fri, 16 May 2014 16:34:20 -0400 Subject: [PATCH] change uid/gid fields in mail_user from unsigned to signed (in incremental sql-files this was already done in upd_0064.sql) --- interface/web/sites/database_user_edit.php | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/interface/web/sites/database_user_edit.php b/interface/web/sites/database_user_edit.php index 6916e26..75422ca 100644 --- a/interface/web/sites/database_user_edit.php +++ b/interface/web/sites/database_user_edit.php @@ -147,6 +147,11 @@ $this->dataRecord['database_user'] = substr($dbuser_prefix . $this->dataRecord['database_user'], 0, 16); } + /* prepare password for MongoDB */ + // TODO: this still doens't work as when only the username changes we have no database_password. + // taking the one from oldData doesn't work as it's encrypted...shit! + $this->dataRecord['database_password_mongo'] = $this->dataRecord['database_user'].":mongo:".$this->dataRecord['database_password']; + $this->dataRecord['server_id'] = 0; // we need this on all servers parent::onBeforeUpdate(); @@ -181,6 +186,9 @@ $this->dataRecord['server_id'] = 0; // we need this on all servers + /* prepare password for MongoDB */ + $this->dataRecord['database_password_mongo'] = $this->dataRecord['database_user'].":mongo:".$this->dataRecord['database_password']; + parent::onBeforeInsert(); } -- Gitblit v1.9.1