From 51ecc7ce114f7155942bdbf1ff336ca5a2f80ee7 Mon Sep 17 00:00:00 2001 From: Roger Szabo Date: Fri, 30 Jun 2017 18:36:33 +0800 Subject: [PATCH] suppress superflous php error on rejected password change Signed-off-by: Roger Szabo --- apps/user_ldap/lib/Access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index f342785ee0..69e1f3c52f 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -346,7 +346,7 @@ class Access extends LDAPUtility implements IUserTools { return false; } try { - return $this->invokeLDAPMethod('modReplace', $cr, $userDN, $password); + return @$this->invokeLDAPMethod('modReplace', $cr, $userDN, $password); } catch(ConstraintViolationException $e) { throw new HintException('Password change rejected.', \OC::$server->getL10N('user_ldap')->t('Password change rejected. Hint: ').$e->getMessage(), $e->getCode()); }