CodeIgniter Forums
Login Issues - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Login Issues (/showthread.php?tid=65100)



Login Issues - Chandini - 04-29-2016

Hi,
Team ,
In Mobile Application  I Gave a Two types Of logins like Mobile number And facebook id . if user is  first time login with mobile number . after that again come with registered  mobile number .. then i will check that mobile number is registered are not .  based on  my conditions redirect to some other page ..
But already user registered  with mobile number .. again come with fb for  logins.. How to Check If That user is already registered are not ...? in this condition i treat like a  user registered with mobile number and facebook treat like a single user


RE: Login Issues - MaXxer - 05-02-2016

The simplest solution for me would be to store the value if a user has registered by a mobile phone number in a session/cookie, which doesn't get destroyed for a very long time. Then after the FB login you can check if this value exists. If true: bind mobilephone + fb login else create new Account or whatever.

I hope I could help you  Smile