-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
There should be password in plain text in docker-compose.yml
Using hash is inconvenient.
environment:
- PHPREDMIN_AUTH_USERNAME=UserName
- PHPREDMIN_AUTH_PASSWORD=PlainPassword
You can hash it and save somewhere on first run index.php
$hash = GetHash();
if(!$hash){
$pwd = getenv('PHPREDMIN_AUTH_PASSWORD');
$hash = password_hash($pwd, PASSWORD_DEFAULT);
SaveHash($hash);
}
// login method
kylelee24
Metadata
Metadata
Assignees
Labels
No labels