This topic is locked

How to update record in user table when user login with gmail

4/12/2022 13:24:07
PHPRunner General questions
E
exora author

How do I get a new user who is logged in with a gmail account to update the ext_security_id column in an existing record with the same email instead of adding a new record in user table.

T
Tayyab Ilyas 4/13/2022

I think you can use some where clause where email field like "@gmail.com"

E
exora author 4/13/2022

Thank you for the advice. However, I don't know where to put the code yet. I want to avoid duplicate records caused by two types of login/registration (sign-up and login with gmail).

Case:
When I try to register using sign-up, then I fill in the email field using a gmail account, a new record will be created. Then when I tried to access the account by login with gmail, it turned out that what was open was not my old account but instead a new record was created.