Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unable to login if bad btUsername cookie
Ran across this bug when I disabled one account from another account. Was completely unable to login with any account because $_COOKIE['btUsername'] was not getting changed during the login process. Testing revealed this to happen anytime $_COOKIE['btUsername'] was an invalid username or a disabled user. Nasty bug. Took me like an hour to debug. May only be partially fixed. I was stuck and ready to give up on this until I cleared all my cookies. Then I reproduced it by putting the invalid btUsername cookie back. Then my patch started working. Suggests that maybe the sessionID cookie was causing the username cookie to get reset or something.
- Loading branch information