Jump to content

SSO - how to check if user is active?

Featured Replies

This state is stored as a bitfield, so you'll need following code to see if he's validated

\IPS\Member::loggedIn()->members_bitoptions['validating']

And to see if the member is online, you can use the isOnline method in the \IPS\Member class

 

 

  • Author

Works perfect, thx!

  • Author

@Daniel F one more question - is there option to get info from custom profile fields via this SSO option?

var_dump( \IPS\Member::loggedIn()->profileFields() );

 

Archived

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

Recently Browsing 0

  • No registered users viewing this page.