Love Fuel?
Donate
About
Forums
Discussions
Login
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Bug in SimpleAuth/reset_password
medeiros
August 2024
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
medeiros
August 2024
just to add: I'm using version 1.9-dev
WanWizard
August 2024
Accepted Answer
Oops, that's a dumb fault! Thanks for reporting it, fix pushed.
medeiros
September 2024
Thanks for your fix.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,090
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
262
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
medeiros
September 2024
WanWizard
August 2024
To Top