Added redirect when a POST value is found #775

merged 2 commits into from Apr 12, 2015


None yet

2 participants

laf commented Apr 11, 2015

This fixes #652.

We check if _POST['username'] exists meaning someone is just logging in, if we have that then we issue a redirect. The 303 is to redirect using GET otherwise POST is used which causes a loop

@laf laf referenced this pull request Apr 11, 2015

Error loading page after login #652

f0o commented Apr 12, 2015

Can you die() after the header-redirect?
No use to keep execution if user gets redirected :)

laf commented Apr 12, 2015

Added an exit like the one above. That's the only change so if scrut was ok before it should be again :)

@f0o f0o merged commit 09522e8 into librenms:master Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment