Jump to content

[API] Working with members - registration validation email?


Omri Amos

Recommended Posts

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.
2016-12-04_1040.png

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

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...