maximebf / php-debugbar

Debug bar for PHP
phpdebugbar.com
MIT License
4.2k stars 400 forks source link

Debugbar somehow breaks my authentication #231

Open uberbrady opened 9 years ago

uberbrady commented 9 years ago

If I leave Debug Bar enabled, I can't log in to my application - every time I POST to the auth URL, Firebug reports the request is "aborted", and I end up being redirected to the login page.

If I disable Debug Bar, I can log in again - and then I can re-enable the debug bar and use it for the rest of my application.

I'm sure if I were using "Stock" Laravel authentication, it would work just fine, but unfortunately I am using a custom auth controller (this is heavily ported legacy code).

I absolutely have a work-around, so this isn't fatal - it's just annoying. I'd love to understand what's going on here (and still be able to run Debug Bar all throughout my application!) Worst-case scenario, I'd like to be able to disable DebugBar from running within my Auth controller.

barryvdh commented 9 years ago

This probably belongs in the https://github.com/barryvdh/laravel-debugbar but okay; Can you try disabling the collectors in your config? Disable them all and re-enable one by one until it breaks (or other way around). I would assume it's either the auth or session collector) Also, check your logs to see if you have any errors.