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

Fixes #4755 Removed password confirmation field from templates

Showing with 4 additions and 0 deletions
+4 -0
......@@ -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 {
......
  • bmortier @bmortier

    mentioned in issue #1504 (closed)

    By Côme Chilliet on 2017-09-02T15:28:26 (imported from GitLab)

    ·

    mentioned in issue #1504 (closed)

    By Côme Chilliet on 2017-09-02T15:28:26 (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