Love Fuel?
Donate
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 26
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 26
just to add: I'm using version 1.9-dev
Harro
August 27
Accepted Answer
Oops, that's a dumb fault! Thanks for reporting it, fix pushed.
medeiros
September 4
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,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
August 27
medeiros
September 4