|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Bypass Login with pre-auth because Language Selection on Login unnecessaryHi 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. ie once the language is locked off and predefined the login page requires nothing more than a <Log In> click from the user - no authentication is required and it is therefore a matter of interrupting an otherwise automated login to the chosen portal page within the horde. Sorry if this is one of those things that has been answered ad-nauseum but I have not been able to find it easily in the lists or web beyond the type of answers I have alluded to above. Best regards, Will -- Horde mailing list - Join the hunt: http://horde.org/bounties/#horde Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: horde-unsubscribe@... |
|
|
Re: Bypass Login with pre-auth because Language Selection on Login unnecessaryZitat von Will Parker <will.parker@...>:
> 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/ -- Horde mailing list - Join the hunt: http://horde.org/bounties/#horde Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: horde-unsubscribe@... |
| Free embeddable forum powered by Nabble | Forum Help |