Commit 7b750194 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5593 Trigger hooks even if SASL password does not modify LDAP

Showing with 9 additions and 0 deletions
+9 -0
......@@ -549,6 +549,15 @@ class user extends simplePlugin
return parent::execute();
}
protected function shouldSave()
{
if ($this->attributesAccess['userPassword']->getClear() != '') {
/* There may be hooks using this even if LDAP object is not modified */
return TRUE;
}
return parent::shouldSave();
}
protected function prepare_save ()
{
global $config;
......
  • bmortier @bmortier

    mentioned in issue #1785

    By Thomas Kornack on 2017-09-02T15:38:13 (imported from GitLab)

    ·

    mentioned in issue #1785

    By Thomas Kornack on 2017-09-02T15:38:13 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment