How to get user logged by user email only.

edited July 2016 in Modules
I need to integrate facebook login into fuel cms. Once I am getting authentication from facebook I want logged that user into cms if exist or create his new account. But here is no function get localuser login. Please provide a solutions.

Comments

  • edited 5:28PM
    You'll need to look at the Fuel authentication model and either extend it to include a function that logs the user in or add a helper that does it.

    Do you get given the email address of the authenticated Facebook user? You should be able to find_one() using that and then log them in. If you're given some sort of different identifier, you may need to extend the user table with a field that contains that identifier and extend the fuel user model to allow you to edit it.
Sign In or Register to comment.