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

Fixes #4073 Fixed user adapt_from_template

parent 5bb1c071
......@@ -500,7 +500,7 @@ class user extends simplePlugin
$skip[] = 'uid';
}
parent::adapt_from_template($attrs, $skip);
if (isset($this->attrs['userPassword'])) {
if (isset($this->attrs['userPassword']) && !in_array('userPassword', $skip)) {
list($hash,$password) = explode('|', $this->attrs['userPassword'][0], 2);
if (preg_match ('/^{[^}]+}/', $hash)) {
$tmp = passwordMethod::get_method($hash);
......
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