protected function getLoginRedirect(array $user)
    {
        $redirect = "account/{$user['user_id']}";

        if (!empty($user['role_redirect'])) {
            $redirect = $user['role_redirect'];
        }

        if ($this->user->isSuperadmin($user['user_id'])) {
            $redirect = 'admin';
        }

        return $redirect;
    }