suppress superflous php error on rejected password change
Signed-off-by: Roger Szabo <roger.szabo@web.de>
This commit is contained in:
parent
bf9412df63
commit
51ecc7ce11
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue