[horde] Bypass Login with pre-auth because Language Selection on Login unnecessary

Jan Schneider jan at horde.org
Wed Oct 14 07:03:04 UTC 2009


Zitat von Will Parker <will.parker at sourcepoint.com.au>:

> Hi Horde,
>
> I have been reading on the lists and find a lot of information  
> related to the language
> selection drop down on login.
>
> The suggestions I have tried from this has focused on the following  
> two observations:
>
> login.php
>
> /* 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>';
> }
>
> and
>
> config/prefs.php
>
> // user language
> $_prefs['language'] = array(
>     'value' => '',
>     'locked' => true,
>     'shared' => true,
>     'type' => 'select',
>     'escaped' => true,
>     'desc' => _("Select your preferred language:")
> );
>
> The changing of the 'value' for language and/or the 'locked' value  
> work for me in so much
> as they define the value in advance and remove the dropdown selector  
> for language on the
> login page respectively.
>
> However the crux of my question is how does one bypass the necessity  
> for a user who has
> been pre-authenticated (using the webmail redirection scheme of  
> cPanel/WHM - username and
> password in a popup on approach to webmai.mydomain.com) and  
> subsequently presented with a
> login page with a <Log In> button only.

This has nothing to do with Horde, it's a hack of the modified Horde  
version that cPanel ships. Please ask there.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list