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

:ambulance: 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
Showing with 4 additions and 0 deletions
+4 -0
......@@ -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);
......
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