mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
setup Mongo authSource by ENV
This commit is contained in:
committed by
Jakub Vrana
parent
b07908282b
commit
34a0bfd939
@@ -618,6 +618,9 @@ if (isset($_GET["mongo"])) {
|
||||
if ($db != "") {
|
||||
$options["db"] = $db;
|
||||
}
|
||||
if (($auth_source = getenv("MONGO_AUTH_SOURCE"))) {
|
||||
$options["authSource"] = $auth_source;
|
||||
}
|
||||
try {
|
||||
$connection->_link = $connection->connect("mongodb://$server", $options);
|
||||
if ($password != "") {
|
||||
|
Reference in New Issue
Block a user