From 83ecc7949a5e93cc108acfd84ee539bf1e842afb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 1 Jul 2024 13:23:45 +0200 Subject: [PATCH] Fix tooltip on password db --- core/modules/modSellYourSaas.class.php | 6 +++--- langs/en_US/sellyoursaas.lang | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/modSellYourSaas.class.php b/core/modules/modSellYourSaas.class.php index 9e4bd816c..6a8300250 100644 --- a/core/modules/modSellYourSaas.class.php +++ b/core/modules/modSellYourSaas.class.php @@ -845,10 +845,10 @@ public function init($options = '') $resultx=$extrafields->addExtraField('port_db', "Port DB", 'varchar', 132, '8', 'contrat', 0, 0, '', '', 1, '', -1, 0, '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); $resultx=$extrafields->addExtraField('username_db', "Username DB", 'varchar', 133, '32', 'contrat', 1, 0, '', '', 1, '', -1, 0, '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); $param=array('options'=>array('dolcrypt'=>null)); - $resultx=$extrafields->addExtraField('password_db', "Password DB", 'password', 134, '64', 'contrat', 0, 0, '', $param, 1, '', -1, 'ToUpdateDBPassword', '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); - $resultx=$extrafields->addExtraField('username_ro_db', "Read-only Username DB", 'varchar', 135, '32', 'contrat', 1, 0, '', '', 1, '', -1, 0, '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); + $resultx=$extrafields->addExtraField('password_db', "Password DB", 'password', 134, '64', 'contrat', 0, 0, '', $param, 1, '', -1, 'ToUpdateDBPassword:password_db', '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); + $resultx=$extrafields->addExtraField('username_ro_db', "Read-only Username DB", 'varchar', 135, '32', 'contrat', 1, 0, '', '', 1, '', -1, 'ToCreateDBUserManualy:username_ro_db', '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); $param=array('options'=>array('dolcrypt'=>null)); - $resultx=$extrafields->addExtraField('password_ro_db', "Read-only Password DB", 'password', 136, '64', 'contrat', 0, 0, '', $param, 1, '', -1, 'ToCreateDBUserManualy', '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); + $resultx=$extrafields->addExtraField('password_ro_db', "Read-only Password DB", 'password', 136, '64', 'contrat', 0, 0, '', $param, 1, '', -1, 'ToUpdateDBPassword:password_ro_db', '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); $resultx=$extrafields->addExtraField('prefix_db', "Special table prefix DB", 'varchar', 140, '64', 'contrat', 0, 0, '', '', 1, '', -1, 0, '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); $resultx=$extrafields->addExtraField('timezone', "TimeZone", 'varchar', 141, '64', 'contrat', 0, 0, '', '', 1, '', -1, 'SellYourSaasTimeZoneDesc', '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")', 0, 0, array('csslist'=>'tdoverflowmax150')); $resultx=$extrafields->addExtraField('fileauthorizekey', "DateFileauthorizekey", 'datetime', 150, '', 'contrat', 0, 0, '', '', 1, '', -1, 0, '', '', 'sellyoursaas@sellyoursaas', 'isModEnabled("sellyoursaas")'); diff --git a/langs/en_US/sellyoursaas.lang b/langs/en_US/sellyoursaas.lang index 2b3b131bf..fe1fd5231 100644 --- a/langs/en_US/sellyoursaas.lang +++ b/langs/en_US/sellyoursaas.lang @@ -577,7 +577,7 @@ BackupOK=Backup successfull ArchiveInstanceDesc=Directory where instance will be archived when it is destroyed. ArchiveTestInstanceDesc=WARNING: Check that the feature is enabled by having the entry archivetestinstance=1 into sellyoursaas.conf file ToCreateDBUserManualy=To create a db user manually on SELECT only, you can do
GRANT SELECT ON database_name.* to 'read-only_user_name'@'%%' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; -ToUpdateDBPassword=To update password of a db user, you can do
SET PASSWORD FOR 'dbname'@'%%' = PASSWORD('newpassword'); SET PASSWORD FOR 'dbname'@'localhost' = PASSWORD('newpassword'); FLUSH PRIVILEGES; +ToUpdateDBPassword=To update password of a db user, you can do
SET PASSWORD FOR 'dbu...'@'%%' = PASSWORD('newpassword'); SET PASSWORD FOR 'dbu...'@'localhost' = PASSWORD('newpassword'); FLUSH PRIVILEGES; LatestBackupMessage=Latest backup message SELLYOURSAAS_ACCEPT_DISCOUNTCODE=Accept discount code when entering payment mode SELLYOURSAAS_ENABLE_OPTINMESSAGES=Add an optin checkbox "Accept commercial offers" (on registration and customer dashboard)