Commit d8add249 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '3710-support-users-with-no-password' into '1.4-dev'

Resolve "Support users with no password"

See merge request fusiondirectory/fd!604
parents 85f5cb86 d37b1e57
......@@ -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