Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
DamonT Posted September 6, 2019 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)?
Daniel F Posted September 6, 2019 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
DamonT Posted September 7, 2019 Author Posted September 7, 2019 @Daniel F one more question - is there option to get info from custom profile fields via this SSO option?
bfarber Posted September 9, 2019 Posted September 9, 2019 var_dump( \IPS\Member::loggedIn()->profileFields() );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.