Commit ea910d0f authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #4063 Using a pattern in password is broken

parent 1a45020c
......@@ -159,7 +159,7 @@ class UserPasswordAttribute extends CompositeAttribute
$locked = FALSE;
$password = '';
if ($this->plugin->is_template) {
list($value, $password) = split('/|/', $value, 2);
list($value, $password) = explode('|', $value, 2);
}
if (preg_match ('/^{[^}]+}/', $value)) {
$tmp = passwordMethod::get_method($value);
......
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