Commit 6428740c authored by Côme Chilliet's avatar Côme Chilliet Committed by Benoit Mortier
Browse files

Fixes #4150 Problems when removing userPassword from template

parent f2a3cf11
......@@ -181,7 +181,11 @@ class UserPasswordAttribute extends CompositeAttribute
function writeValues($values)
{
if ($this->needPassword[$values[0]] && ($values[1] == '')) {
return $values[3];
if ($this->plugin->is_template) {
return '';
} else {
return $values[3];
}
}
$temp = passwordMethod::get_available_methods();
if (!isset($temp[$values[0]])) {
......
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