Thomas Bruederli escribió:
> Pedro R. Benito da Rocha wrote:
>
>> Hello,
>>
>> I'm writting a plugin for select host from user's login, so I have to
>> not show the server box on login form.
>>
>> If I leave 'default_host' blank at main.inc.php the "Server" box
>> appears, and if I put something on the config variable the plugin does
>> not work, because default host takes precedence over the host selected
>> by the plugin.
>>
>> Is there a way to hide "server" box on login form without assign a value
>> to "default_host" or I have found a bug on default_host setting?
>>
>
> I don't know how you wrote your plugin but the 'authenticate' should allow
> you to set the host. Just set any value (e.g. localhost) to the
> default_host config parameter and then set 'host' in the return value of
> the 'authenticate' hook. See index.php line 84 how that hook is implemented.
>
When I leave 'default_host' blank, server box appears in login form but
plugin works ok.
When I put something on 'default_host' plugin doesn't work, because
server tries to connect to 'default_host'.
The plugin is attached, ¿I am doing something wrong?
Thanks,
Pedro
--
------------------------------------------------------------------------
Pedro R. Benito da Rocha - Servicio de Informatica - Area de Sistemas
Universidad de Burgos (España) E-mail: [email protected] Tel: +34 947258845
------------------------------------------------------------------------
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/MU/1eEa9LJr/config.inc.php.dist
http://detached.gigo.com/rc/MU/1eEa9LJr/prblogin.php
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/