Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
User statuses are confusing (Craft 2 and Craft 3) #3556
It’s a little awkward because a user technically could be both pending and suspended (though suspending a user that hasn’t even activated their account yet, let alone done something suspension-worthy, is a little Dickish).
Considering that I would say this is expected behavior. If their account is pending, they should show up in this list, regardless of whether they’ve been suspended. If they’ve been suspended, I do think that’s an important thing to show in the Status column, even when searching for Pending users.
Where are you seeing the reference to “unverified” ? Pending and unverified mean the same thing, but we should be consistent.
Yeah, I'm not sure what the reason for suspending users was. It looks like maybe the accounts were created with spammy-looking emails, so maybe that's why they got suspended.
In this particular case, the client wants to see only Pending users who are not Suspended.
If this is the expected behaviour, then the user detail view should display both 'Pending' and 'Suspended'. Currently it looks like the user's status is only 'Suspended'.
The dot in the list-view items should also match the filter, maybe by showing both colors. Currently it seems like the filter is broken because the filter's dot color doesn't match the result dot colors.
The documentation for user status should also be updated to make it clear that a user can have multiple statuses. Is this really the case though? It seems like user status is a string, so a user shouldn't be able to have multiple statuses: Craft 3 User Model - Status
I saw this in the user's detail page (e.g.
I guess I could see why… if a user is suspended, even if they haven’t activated their account yet they’re not really “pending” anything… in fact they should get an error when they try to activate their account at that point.
“Status” is a core feature for all elements. Users just happen to define their status based on multiple independent properties:
It wouldn’t be possible to show more than once status for users without introducing a breaking change for all element types (including plugin-supplied ones), so not something we could even consider until Craft 4.
Ah yes, thanks, will fix that.