Commit 90d34a14 authored by finalbeta's avatar finalbeta Committed by Johan Cwiklinski
Browse files

Fix auto user creation for other authentication type; fixes #8455

parent a1f2e1a7
......@@ -920,6 +920,9 @@ class Auth extends CommonGLPI {
// Then ensure addslashes
$input = Toolbox::addslashes_deep($input);
unset ($this->user->fields);
if ($authtype == self::EXTERNAL && !isset($input["authtype"])) {
$input["authtype"] = $authtype;
}
$this->user->add($input);
} else {
// Auto add not enable so auth failed
......
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