On a succesful LDAP user-creation, we should return the $user, not (#3008)
just 'true'.
This commit is contained in:
committed by
snipe
parent
659d9c10ca
commit
6f9a82f4ea
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user