mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
On a succesful LDAP user-creation, we should return the $user, not (#3008)
just 'true'.
This commit is contained in:
parent
659d9c10ca
commit
6f9a82f4ea
|
@ -219,7 +219,7 @@ class Ldap extends Model
|
|||
$user->notes = 'Imported on first login from LDAP';
|
||||
|
||||
if ($user->save()) {
|
||||
return true;
|
||||
return $user;
|
||||
} else {
|
||||
LOG::debug('Could not create user.'.$user->getErrors());
|
||||
throw new Exception("Could not create user: ".$user->getErrors());
|
||||
|
|
Loading…
Reference in a new issue