Ranx99
3 months ago
415
4
Laravel

Is this secure? why?

Posted 3 months ago by Ranx99

I am following this tutorial to implement social login: https://www.sitepoint.com/easily-add-social-logins-to-your-app-with-socialite/

Everything works fine, but I am having trouble in understanding this code:

$user = User::where('email', $providerUser->getEmail())->first();

What's happening here? Is this secure against a malicious user?

Please sign in or create an account to participate in this conversation.