Don't log LDAP password when server is not available

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-09-01 10:31:11 +02:00
parent 6f7d200838
commit b68609d0cf
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 9 additions and 3 deletions

View File

@ -65,6 +65,7 @@ class Log implements ILogger {
'completeLogin',
'login',
'checkPassword',
'checkPasswordNoLogging',
'loginWithPassword',
'updatePrivateKeyPassword',
'validateUserPass',
@ -82,14 +83,19 @@ class Log implements ILogger {
'solveChallenge',
'verifyChallenge',
//ICrypto
// ICrypto
'calculateHMAC',
'encrypt',
'decrypt',
//LoginController
// LoginController
'tryLogin',
'confirmPassword',
// LDAP
'bind',
'areCredentialsValid',
'invokeLDAPMethod',
];
/**
@ -97,7 +103,7 @@ class Log implements ILogger {
* @param SystemConfig $config the system config object
* @param null $normalizer
*/
public function __construct($logger=null, SystemConfig $config=null, $normalizer = null) {
public function __construct($logger = null, SystemConfig $config = null, $normalizer = null) {
// FIXME: Add this for backwards compatibility, should be fixed at some point probably
if($config === null) {
$config = \OC::$server->getSystemConfig();