|
|||
|
Horde login Language Selection doesn't "stick"?
I have been reading many posts here mostly dating back a while that seem to indicate the the "feature" whereby one has to select the language for the Horde session on every login is something we have to live with. Is that right or am i missing a configuration or other setting which will allow my users to select autologin to Horde and wind up only having to enter their username and password instead of having to select the language for the session every time.
From what I can see the selection of the language does not "stick" even if it is set in the options in Horde. I also note that other settings are saving state properly. I can't really find too much about this on the web at large so maybe I am getting something not very common. One user has stated that the process of logging in to check their webmail (using horde in this instance) is slow and clunky. Am I missing something to allow users to just have to login with their username and password and then be served up their horde inbox? (I have the opening page set to mail in horde and this is sticking - its just the mail client intermediate window with the autoload in x seconds followed by the language dropdown that I think is causing the appearance of a slow process.) TIA Will |
|
|||
|
OK I have done some digging since lodging a ticket with WHM/cPanel and being instructed that it is definitely a "horde" thing and normal behavior.
So... I find the layout of horde in cPanel thus: Code:
root@jupiter [~]# locate horde /scripts/fullhordereset /scripts/neomail2hordeaddrbook /scripts/resethorde /usr/local/cpanel/3rdparty/etc/horde /usr/local/cpanel/3rdparty/etc/horde/php.ini /usr/local/cpanel/base/horde /usr/local/cpanel/base/frontend/x/images/horde.gif /usr/local/cpanel/base/frontend/x3/branding/horde.gif /usr/local/cpanel/base/frontend/x3/images/horde.gif /usr/local/cpanel/base/frontend/x3mail/branding/horde.gif /usr/local/cpanel/base/horde/COPYING /usr/local/cpanel/base/horde/README /usr/local/cpanel/base/horde/admin /usr/local/cpanel/base/horde/config /usr/local/cpanel/base/horde/docs /usr/local/cpanel/base/horde/imp /usr/local/cpanel/base/horde/index.php ... Code:
/* Build the <select> widget containing the available languages. */
if (!$prefs->isLocked('language')) {
$_SESSION['horde_language'] = NLS::select();
$langs = '<select name="new_lang" onchange="selectLang()">';
foreach ($nls['languages'] as $key => $val) {
$sel = ($key == $_SESSION['horde_language']) ? ' selected="selected"' : '';
$langs .= "<option value=\"$key\"$sel>$val</option>";
}
$langs .= '</select>';
}
This appears in config/prefs.php Code:
// user language
$_prefs['language'] = array(
'value' => '',
'locked' => true,
'shared' => true,
'type' => 'select',
'escaped' => true,
'desc' => _("Select your preferred language:")
);
This removes the selection drop down from the login window but still requires the user intervention at that point --> click "Log In" I am still investigating the methods available to remove this login page which requires user intervention for those of us who want to presuppose a language for users (on login at least) and take advantage of the pre-auth provided by the webmail. cpanel redirection index... Will |
|
|||
|
My Solution...
Hi
My solution is to add the following line before the last </script> in /usr/local/cpanel/base/horde/templates/login/login.inc Code:
document.horde_login.submit(); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My Exim Configuration Changes Don't "Stick" | gcutrer | cPanel Newbies | 7 | 10-21-2009 11:42 PM |
| Horde "Login Failed" after logging in | xnull | cPanel and WHM Discussions | 78 | 05-01-2008 11:12 AM |
| Horde & "double login" | tomfra | cPanel and WHM Discussions | 4 | 06-24-2003 06:39 AM |