Home » Authentication » LiveUser » Bug #1537
isInactive() - incorrect behavior
Details
| Submitted | 2004-06-02 04:43 UTC |
|---|---|
| From | mpuglin at yahoo dot com |
| Status | No Feedback |
| Package | LiveUser |
| PHP Version | 4.3.2 |
| OS | Win XP |
| Roadmaps | (Not assigned) |
Comments
[2004-06-02 04:43 UTC] mpuglin at yahoo dot com
Description:
------------
More info:
LiveUser 0.11.1
Auth: db_auth (MySQL)
Perm: DB_Medium
isInactive() does not seem to work correctly.
Case One: I enter an invalid username/pass.
$usr->isLoggedIn() = false (this makes sense)
$usr->isInactve() = false. (This doesn't make sense.)
Case Two: I enter a valid username/pass for an inActive user
$usr->isLoggedIn() = false
$usr->isInactive() = false.
How am I able to differentiate a valid user who is marked as inactive?
nitpick: I think the function name should be isActive().
The column name is isActive and using a negation as part of a variable or method is confusing. Now, if I want to test for an active user, I enter !isInactive() (double-negation)
small point, I know
[2004-06-03 16:39 UTC] smith at backendmedia dot com
Could you try the CVS version? Since we have made changes that seem to have fixed this issue.
[2004-06-03 20:48 UTC] mpuglin at yahoo dot com
To be honest, I don't have time to test CVS code at the moment. Playing around with this issue pushed me back from my schedule a bit.
However, I will test this when the next release is available.
Keep up the good work.
[2004-08-28 16:30 UTC] smith at backendmedia dot com
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.