Hello,
I have an external page out of Docebo but I'd like to make it available only to Docebo users.
How can I check if user is logged in Docebo? Can I use a Docebo function?
Thank you
Jiri
| Posted by | Messages text |
|---|---|
![]() Total post : 14 Profile |
Written on : 20/06/2011 11:13 ( more than one month ) Object : How to check if user is logged in Docebo? Hello, I have an external page out of Docebo but I'd like to make it available only to Docebo users. How can I check if user is logged in Docebo? Can I use a Docebo function? Thank you Jiri |
![]() Total post : 14 Profile |
Written on : 20/06/2011 16:36 ( more than one month ) Object : Re: How to check if user is logged in Docebo? SOLVED: Not sure if is the best practise but it works: define("IN_DOCEBO", true); require(dirname(__FILE__).'/../base.php');
// initialize
require(_base_.'/lib/lib.bootstrap.php');
Boot::init(BOOT_PAGE_WR);
if (!Docebo::user()->isAnonymous()) ... |