Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Omri Amos Posted December 4, 2016 Posted December 4, 2016 Hi, I'm using the API to check if a user is logged in (\IPS\Member::loggedIn()->member_id). I also make sure that he is not banned (\IPS\Member::loggedIn()->isBanned()). This works fine.However, some profiles are fake ones that did not respond to the registration validation email. e.g. And unfortunately when checking against loggedIn() and isBanned() these users still returns TRUE. I need to make sure that only active, validated users, will return true. How can I check via the API if a user is in the "members_filter_validating" category or not? I'm looking at this page but couldn't anything related to the registration validation expect for this function which is used to SET a user as validated, not check against his current status: $member->validate(): Mark the member as validated. Thanks
Martin A. Posted December 4, 2016 Posted December 4, 2016 \IPS\Member::loggedIn()->members_bitoptions['validating'] That will be TRUE if the member is awaiting validation.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.