Hello all,

I noticed that if default_host is set RC only accepts those hosts, but
the side effect is that the login form hides or shows the Server dialog.
This is ok for most installations, but plugins can't disable this
behavior, also custom templates.

The only way to modify this is modifying the code (file
program/include/rcube_template.php, about line 1028 in 0.3-stable).
It could be nice to manage the standard fields of login form in order to
customize more from templates and/or plugins.

In some cases assign a username or a host could be necessary (log from
web portals for example, where only password could be needed).

I have done this way:
--- rcube_template.php    2009-09-10 09:15:03.377446000 +0200
+++ rcube_template-orig.php    2009-09-10 09:18:11.329532000 +0200
@@ -1026,5 +1026,5 @@
             }
         }
-        else if (empty($default_host) &&
(($this->config['show_dialog']['host'] == true))) {
+        else if (empty($default_host)) {
             $input_host = new html_inputfield(array('name' => '_host',
'id' => 'rcmloginhost', 'size' => 30));
         }

New config option 'show_dialog' is used.


    Pedro



Pedro Raúl Benito da Rocha escribió:
> Hello,
>
> I manage to use a different login screen, and on exit the plugin  
> redirects output to that login screen, so i override default login  
> screen :(
>
> I don't know if database can be changed :), but my problen is this: I  
> have a cluster of webservers load-balanced and various domains with  
> different imap servers. I need to log in from one place for all people.
>
> For now I "solved" the problem using the alternate login page, but I  
> think that RC could be more flexible. The other solution is to patch  
> RC sources, I will post the patch tomorrow if it works ;)
>
> Next I will try to change the database, but you can do it using an  
> alternate login page and various RC installations.
>
> And yes, the plugin lets you do thins like that:
>   [email protected] uses my.own.imapserver.com
>   [email protected] uses my.second.imapserver.net
> ... etc.
>
> Also lets you change login name :)
>
> If anyone wants to see the plugin I can put it on a web server.
>
>       Pedro
>   

-- 
------------------------------------------------------------------------
Pedro R. Benito da Rocha   -  Servicio de Informatica - Area de Sistemas
Universidad de Burgos (España) E-mail: [email protected]  Tel: +34 947258845
------------------------------------------------------------------------ 


_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to