Skip to content
Snippets Groups Projects
Commit 0cc11d97 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

obfuscate password in config #1487

parent 1d46eaf1
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class auth_plugin_authpdo extends DokuWiki_Auth_Plugin {
$this->pdo = new PDO(
$this->getConf('dsn'),
$this->getConf('user'),
$this->getConf('pass'),
conf_decodeString($this->getConf('pass')),
array(
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, // always fetch as array
PDO::ATTR_EMULATE_PREPARES => true, // emulating prepares allows us to reuse param names
......
......@@ -8,7 +8,7 @@
$meta['debug'] = array('onoff', '_caution' => 'security');
$meta['dsn'] = array('string', '_caution' => 'danger');
$meta['user'] = array('string', '_caution' => 'danger');
$meta['pass'] = array('password', '_caution' => 'danger');
$meta['pass'] = array('password', '_caution' => 'danger', '_code' => 'base64');
$meta['select-user'] = array('', '_caution' => 'danger');
$meta['select-user-groups'] = array('', '_caution' => 'danger');
$meta['select-groups'] = array('', '_caution' => 'danger');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment