Why does this PHP empty check block the first valid user?
Why does this PHP empty check block the first valid user in an auth flow. The PHP code uses empty on a user ID, but empty treats the string 0 as true. In PHP login systems this locks out the first registered user.
#whatswrongwiththisphpcode #phpbug #phpproductionbug #phpdebugging #phpbackend #phpcodereview #phpsecurity #phpperformance #phpreliability #phpapi #phpwebdevelopment #phpengineer...
