On a succesful LDAP user-creation, we should return the $user, not (#3008)

just 'true'.
This commit is contained in:
Brady Wetherington
2016-12-01 15:54:13 -08:00
committed by snipe
parent 659d9c10ca
commit 6f9a82f4ea
+1 -1
View File
@@ -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());