Germany has made mistakes with an open-door policy that saw more than a million migrants enter Germany over the past two years.