Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Extending simpleauth login function
  • I'm extended the login function on simpleauth class http://scrp.at/a3U and placed the file inside classes/auth/login/ then added it to the bootstrap http://scrp.at/a3V When I call the \Auth::instance()->login($val->validated('username'), $val->validated('password')) for some reason the $this->user object returned is not what I expected. It returns the simpleauth user object when it should be returning an object with more data because of the table join. I know the extended method is getting called because I can echo a message from the extended login function and it's getting displayed on the screen. (by returning false) what am i doing wrong? please help. Many thanks.
  • classes/auth/login/driver tells you exactly which methods are abstract and have to be defined in your driver.
  • Harro Verton wrote on Friday 3rd of February 2012:
    classes/auth/login/driver tells you exactly which methods are abstract and have to be defined in your driver.

    Thanks WanWizard
  • Looks like you also have to extend the perform_check() method as well.

Howdy, Stranger!

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

In this Discussion