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

Fixes #4755 Removed password confirmation field from templates

parent 00dc6b5e
......@@ -91,6 +91,10 @@ class UserPasswordAttribute extends CompositeAttribute
parent::renderAttribute($attributes, $readOnly);
} else {
foreach ($this->attributes as $key => &$attribute) {
if (is_object($this->plugin) && $this->plugin->is_template && ($key == 2)) {
/* Do not display confirmation field in template mode */
continue;
}
if (($key == 0) && ($config->get_cfg_value('forcePasswordDefaultHash', 'FALSE') == 'TRUE')) {
$attribute->setDisabled(TRUE);
} else {
......
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