Socialite user registration. What to do with password field
Hi, I have setup Socialite and allow my end-user to register via Facebook. In that case I don't have a password associated to the user. I wonder what you guys did. Do you create a fake password and safe it with the user record or did you change the password field to nullable() and left it empty?
Thanks!
When you use registration or login via social media you don't need password field because it's not required at tis case so you can left it empty (NULL) .
On other hand some people after finish registration via social networks they redirect to other form and let user set his password, so if user in next time like to login via social like Facebook we will not ask him to enter password, otherwise maybe he will login via his email that we already have from social media registration API and in this case he should enter his password.
If user is new to website, sign up using facebook and store his facebook ID in datatabse with his/her Name , avatar , gender etc. and perform some other option for new user.
When that user comes again, search for the ID in database and log that use in.
I realise this is an old post but it's been helpful with sorting out my own Socialite flow
Going with the nulled password approach, how would you handle an action that requires a password confirmation?