Can't unlock previosuly resetted Wiko Pulp 4g phone (loop in login screen)
This is called Device Protection Lock or Factory Reset Protection. It's an anti-theft feature that is triggered when you hard reset your device without removing the screen lock code and Google accounts. You can check if your account is synced to the device by going to Google.com/dashboard, and check under Android. If you see your device there, it means that it's synced before the reset, if not, then there's gotta be another account that was signed in to it. 

If you changed your password before or after the Factory Reset, you need to wait for 24 hours before you can sign back in on the device and complete the setup.

If that still doesn't work, try disabling the 2-step verification from your friend's account, as some devices may have compatibility issues with it.

If that still doesn't work, the best way is to get in touch with the device's manufacturer. You may need to send in your device for repair. I'm not really quite sure for every manufacturer, but usually, they will flash it.