Skip to content
Permalink
Browse files

prepare to use authcfg for layer connection info from qgis projects

  • Loading branch information...
uprel committed Sep 8, 2019
1 parent 4a1c96c commit 358c10e41b5e58f8634be2f08e84a975f5c9a2a7
Showing with 10 additions and 0 deletions.
  1. +10 −0 admin/class.Helpers.php
@@ -435,6 +435,16 @@ public static function getLayerInfo(SimpleXMLElement $layer)
$ds_parms['type'] = (string)$layer['geometry'];
}
//read user and pass for authcfg from settings
if(isset($ds_parms['authcfg']) && defined('AUTHCFG')) {
$auth = AUTHCFG;
$cfg = $auth[$ds_parms['authcfg']];
if(!empty($cfg)) {
$ds_parms['user'] = $cfg['user'];
$ds_parms['password'] = $cfg['password'];
}
}
return self::msg(true, $ds_parms);
}

0 comments on commit 358c10e

Please sign in to comment.
You can’t perform that action at this time.