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

:ambulance: fix(core) Fix userPassword template

Reading of old format when modifiers where in use was broken.

issue #6163
Showing with 1 addition and 1 deletion
+1 -1
...@@ -195,7 +195,7 @@ class UserPasswordAttribute extends CompositeAttribute ...@@ -195,7 +195,7 @@ class UserPasswordAttribute extends CompositeAttribute
$parts = explode('|', $value, 3); $parts = explode('|', $value, 3);
if ((count($parts) < 3) || !in_array($parts[1], ['TRUE','FALSE'])) { if ((count($parts) < 3) || !in_array($parts[1], ['TRUE','FALSE'])) {
/* Old format from FD<1.4 */ /* Old format from FD<1.4 */
list($value, $password) = $parts; list($value, $password) = explode('|', $value, 2);
} else { } else {
list($pw_storage, $locked, $password) = $parts; list($pw_storage, $locked, $password) = $parts;
return [$pw_storage, $password, $password, $this->attributes[3]->getValue(), $locked]; return [$pw_storage, $password, $password, $this->attributes[3]->getValue(), $locked];
......
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