\begin{align} (z+1)^2 &= 2i \\ z+1 &= \pm \sqrt{2} \cdot \frac{1+i}{\sqrt{2}} \\ &= \pm (1+i) \\ \therefore \ \ z &= i, -2-i \end{align}