Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgot Password reset #289

Closed
Flupster opened this issue Dec 22, 2014 · 3 comments
Closed

Forgot Password reset #289

Flupster opened this issue Dec 22, 2014 · 3 comments
Labels

Comments

@Flupster
Copy link

[2014-12-22 15:32:59] production.ERROR: exception 'ErrorException' with message 'call_user_func_array() expects parameter 1 to be a valid callback, class 'App\Services\Auth\SeatGuard' does not have a method 'where'' in /var/www/seat/bootstrap/compiled.php:7776
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'call_user_func_...', '/var/www/seat/b...', 7776, Array)
#1 /var/www/seat/bootstrap/compiled.php(7776): call_user_func_array(Array, Array)
#2 /var/www/seat/bootstrap/compiled.php(3180): Illuminate\Support\Manager->__call('where', Array)
#3 /var/www/seat/bootstrap/compiled.php(3180): Illuminate\Auth\AuthManager->where('email', '=', 'EMAIL@gmail....')
#4 /var/www/seat/app/controllers/RemindersController.php(87): Illuminate\Support\Facades\Facade::__callStatic('where', Array)
#5 /var/www/seat/app/controllers/RemindersController.php(87): Illuminate\Support\Facades\Auth::where('email', '=', 'EMAIL@gmail....')
#6 [internal function]: RemindersController->{closure}(Object(User), 'PASSWORD')
#7 /var/www/seat/vendor/laravel/framework/src/Illuminate/Auth/Reminders/PasswordBroker.php(175): call_user_func(Object(Closure), Object(User), 'PASSWORD')
#8 /var/www/seat/bootstrap/compiled.php(3178): Illuminate\Auth\Reminders\PasswordBroker->reset(Array, Object(Closure))
#9 /var/www/seat/app/controllers/RemindersController.php(90): Illuminate\Support\Facades\Facade::__callStatic('reset', Array)
#10 /var/www/seat/app/controllers/RemindersController.php(90): Illuminate\Support\Facades\Password::reset(Array, Object(Closure))
#11 [internal function]: RemindersController->postReset()
#12 /var/www/seat/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#13 /var/www/seat/bootstrap/compiled.php(5437): Illuminate\Routing\Controller->callAction('postReset', Array)
#14 /var/www/seat/bootstrap/compiled.php(5425): Illuminate\Routing\ControllerDispatcher->call(Object(RemindersController), Object(Illuminate\Routing\Route), 'postReset')
#15 /var/www/seat/bootstrap/compiled.php(4657): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'RemindersContro...', 'postReset')
#16 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}()
#17 /var/www/seat/bootstrap/compiled.php(4984): call_user_func_array(Object(Closure), Array)
#18 /var/www/seat/bootstrap/compiled.php(4682): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#19 /var/www/seat/bootstrap/compiled.php(4670): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#20 /var/www/seat/bootstrap/compiled.php(706): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#21 /var/www/seat/bootstrap/compiled.php(687): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#22 /var/www/seat/vendor/barryvdh/laravel-debugbar/src/Middleware/Stack.php(34): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#23 /var/www/seat/bootstrap/compiled.php(1146): Barryvdh\Debugbar\Middleware\Stack->handle(Object(Illuminate\Http\Request), 1, true)
#24 /var/www/seat/bootstrap/compiled.php(7311): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#25 /var/www/seat/bootstrap/compiled.php(7908): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#26 /var/www/seat/bootstrap/compiled.php(7855): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#27 /var/www/seat/bootstrap/compiled.php(10897): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#28 /var/www/seat/bootstrap/compiled.php(648): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#29 /var/www/seat/public/index.php(49): Illuminate\Foundation\Application->run()
#30 {main} [] []

@ccatlett1984
Copy link
Contributor

Something looks to be wrong with this function:
https://github.com/eve-seat/seat/blob/dev/app/controllers/RemindersController.php#L78

Also, shouldn't we be hashing the password?

@eve-seat
Copy link
Owner

yeah @ccatlett1984 you are probably right. Think this function did not get the testing it needed when moving to \Auth.

@ghost
Copy link

ghost commented Dec 28, 2014

Will shoot a PR for that soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants