* @param Authenticatable $user
* @return \Illuminate\Http\RedirectResponse
* @throws AuthException
+ * @throws \BookStack\Exceptions\LdapException
*/
protected function authenticated(Request $request, Authenticatable $user)
{
/**
* Get the groups a user is a part of on ldap
* @param string $userName
- * @return array|null
+ * @return array
* @throws LdapException
*/
public function getUserGroups($userName)
$user = $this->getUserWithAttributes($userName, [$groupsAttr]);
if ($user === null) {
- return null;
+ return [];
}
$userGroups = $this->groupFilter($user);