Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Multiple login drivers. Need to know for logout() which one was used?
  • I see a boolean response as the result of the login check passed an array of login drivers.
    Seems to me that in order to call the correct driver at logout time, and possibly elsewhere in the body of the app for certain customizations, it would be useful or even necessary to know which login path a user opted to use. Could you consider having the response be an array of all the drivers that returned "true" ?
    This way, if user has already logged into FB and twitter and then hits the site, the call would return "facebook" and "twitter" (or the corresponding drivers) Thoughts?
  • No, the check should just return boolean - but that said the information is there. The Auth class already keeps track of which drivers are logged in at any time. And you can retrieve the logged in drivers using Auth::verified()

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion