🚑 fix(users) Fix empty password method on users

issue #3710
parent 85f5cb86
......@@ -182,7 +182,7 @@ class UserPasswordAttribute extends CompositeAttribute
$pw_storage = $config->get_cfg_value('passwordDefaultHash', 'ssha');
$locked = FALSE;
$password = '';
if (!empty($value)) {
if (!empty($value) || ($this->plugin->initially_was_account && !$istemplate)) {
if ($istemplate) {
if ($value == '%askme%') {
return ['%askme%', '', '', $value, ($locked ? 'TRUE' : 'FALSE')];
......
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