FEU - how to get LoggedInId

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
vintrix
New Member
New Member
Posts: 3
Joined: Tue Jan 15, 2019 7:51 pm

FEU - how to get LoggedInId

Post by vintrix »

I'm using FEU to allow users to log in:
{FrontEndUsers action=login }

After log in they are redirected to a module that I created. How do I get the Loggedid ID?

I've tried this:
$feu = \cms_utils::get_module('FrontEndUsers');
$uid = $feu->LoggedInId();

but I am getting this error message:
Notice: Undefined offset: 1 in C:\wamp64\www\xxxxxx\modules\FrontEndUsers\lib\class.FrontEndUsersManipulator.php on line 66
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FEU - how to get LoggedInId

Post by calguy1000 »

That is the correct syntax.

But you must be running an old version because line 66 of that file in the latest release is:

Code: Select all

list($json,$sig) = explode('::',$encoded,2);
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”