Fix offline login for when we are not using patron api