This is a very interesting find notnac.
I also notice that I can login with an
inactive user.
Here's a change that I tried and it works.
In login.php, around line 21, add a check for $user->isActive
The original line
Code:
if ($user->userId && $user->password == sha1($_POST['password']))
Change it to
Code:
if ($user->userId && $user->password == sha1($_POST['password']) && $user->isActive)
Also change the comment on line 32
Code:
// invalid user and/or password and/or user not active