Commit b7654846 authored by Johan Cwiklinski's avatar Johan Cwiklinski
Browse files

Merge branch '9.5/bugfixes'

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