need to use information about logged in fuel users.

edited April 2013 in Modules
Hello,

I understand that fuel_users table contains fuel users data. I want to send an email from a controller to the fuel user who has currently logged in. Is the logged in users information set in any session variables. If so how can I access it. I need user_name, email,first_name, last_name of logged in fuel users.

Comments

  • edited 7:51AM
    There is a fuel_auth class that has a "valid_user" method on it.

    For 0.93 you can access it this way:
    $valid_user = $this->fuel_auth->valid_user();

    For the 1.0 beta:
    $valid_user = $this->fuel->auth->valid_user();
Sign In or Register to comment.