A way to check tenant id not by URL

12 views
Skip to first unread message

Adonis Dumadapat

unread,
Mar 30, 2014, 11:48:19 PM3/30/14
to openv...@googlegroups.com
Hi,

I've been trying to customize OpenVBX and I made a custom registration page.  Now this page will automatically create the tenant and the users upon success.  I've that that already but my problem now is I want to login without the newly registered user fill-up or go to the login form.  As far as I've checked, tenants have different URL's and this is where the queries are based when getting the current tenant id.

My latest attempt was to tweak the MY_Controller.php on the __construct function.  Instead of this:

$this->tenant = $this->settings->get_tenant($this->router->tenant);

I'm getting the tenant from the session which was previously set upon successful tenant adding.

Thank you in advance!
Reply all
Reply to author
Forward
0 new messages