Commit 68362ba1 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(6035) Set userPassword to %askme% by default in templates

This makes more sense since it means asking for password at creation,
 and not changing password when applying.

issue #6035
parent 78d7af33
......@@ -256,6 +256,10 @@ class user extends simplePlugin
{
parent::__construct($dn, $object, $parent, $mainTab);
if ($this->is_template && !$this->initially_was_account) {
$this->attributesAccess['userPassword']->setValue('%askme%');
}
$this->attributesAccess['uid']->setUnique('whole');
$this->attributesAccess['uid']->setAutocomplete(FALSE);
$this->attributesAccess['uid']->setDisabled($this->initially_was_account && !$this->is_template);
......
Markdown is supported
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