Make autologin configurable

This commit is contained in:
cytopia 2019-01-29 15:50:09 +01:00
parent 233c906d57
commit 7a75f04952
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 18 additions and 5 deletions

View File

@ -30,10 +30,14 @@ $i = 0;
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = getenv('MYSQL_ROOT_PASSWORD');
if (getenv('DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN') == 1) {
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = getenv('MYSQL_ROOT_PASSWORD');
} else {
$cfg['Servers'][$i]['auth_type'] = 'cookie';
}
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'mysql';
$cfg['Servers'][$i]['compress'] = false;

View File

@ -128,7 +128,6 @@ TIMEZONE=Europe/Berlin
################################################################################
###
### INTRANET SETTINGS
@ -203,6 +202,16 @@ DEVILBOX_UI_PASSWORD=password
DEVILBOX_UI_ENABLE=1
###
### Automatically be logged in into phpMyAdmin
###
### Example:
### DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1
### DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=0
###
DEVILBOX_VENDOR_PHPMYADMIN_AUTOLOGIN=1
################################################################################
###