[RCD] Login plugin and default host
roundcube at gmail.com
Sat Sep 19 14:19:12 CEST 2009
Pedro R. Benito da Rocha wrote:
> 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.
List info: http://lists.roundcube.net/dev/
More information about the Dev