DamonT Posted September 6, 2019 Share Posted September 6, 2019 Hi, I want to use SSO option to check if user is logged in on forum: https://invisioncommunity.com/developers/docs/members-authentication/developing-single-sign-on-sso-integration-r65/ How can I check if user is logged in and active (if he click in activation email link)? Link to comment Share on other sites More sharing options...
Daniel F Posted September 6, 2019 Share Posted September 6, 2019 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 Link to comment Share on other sites More sharing options...
DamonT Posted September 6, 2019 Author Share Posted September 6, 2019 Works perfect, thx! Link to comment Share on other sites More sharing options...
DamonT Posted September 7, 2019 Author Share Posted September 7, 2019 @Daniel F one more question - is there option to get info from custom profile fields via this SSO option? Link to comment Share on other sites More sharing options...
bfarber Posted September 9, 2019 Share Posted September 9, 2019 var_dump( \IPS\Member::loggedIn()->profileFields() ); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.