Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Bug in SimpleAuth/reset_password
  • Dear friend,

    In the file package/auth/classes/login/simpleauth.php.
    In the reset_password method, a $user variable was used in the switch case, but it was not defined previously.
    My suggestion is to add a new line, at 475, with the following code:

    $query = \DB::select()->from(\Config::get('simpleauth.table_name'));

    and change the variables $user in the switch case to $query
    and finally change the line to

    $user = $query->execute(\Config::get('simpleauth.db_connection'))->current();

    I hope I can contribute with this simple code.
    Thanks in advance
  • just to add: I'm using version 1.9-dev
  • HarroHarro
    Accepted Answer
    Oops, that's a dumb fault! Thanks for reporting it, fix pushed.
  • Thanks for your fix.

Howdy, Stranger!

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

In this Discussion