CodeIgniter Forums

Full Version: Login Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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