[imp] problems logging in with customized login.php

Thijs Koetsier thijs.koetsier@exception.nl
Mon Oct 21 13:40:19 2002


Hello all,

I'm trying to use a customized loginscreen for Horde. Therefore, I've
used the custom_login.php to create the page I've added below.

When using this page in IE a runtime error pops up, stating that an
Object is expected in line 23 (where I can't find anything odd).
However, after this error I get logged into Horde.

When using this page in Mozilla the runtime error does not pop up, but
the first login is said to be wrong. Supplying the same login and
password again, logs me into Horde.

Ofcourse, I would like to login without the error or the second attempt.
Is there anybody who could help me with this problem? 

Thanks in advance,
with kind regards,
 
Thijs Koetsier


My imp/login.php: 
(/usr/share/horde2 is my horde-folder)



<?php // $Horde: imp/scripts/custom_login.php,v 1.1.2.1 2001/12/17
00:42:29 rich Exp $

// CUSTOMIZE THIS
define('IMP_BASE', '/usr/share/horde2/imp/');

require_once IMP_BASE . '/lib/base.php';
require_once IMP_BASE . '/config/servers.php';

/* Set up the password encryption token. */
Secret::setKey('imp');

/* Use the first server defined in servers.php. */
// CUSTOMIZE THIS
$server = key($servers);

?>

<!-- CUSTOMIZE THIS -->
<FORM action="redirect.php" method="post" name="implogin">

<input type="hidden" name="Horde2"
value="d1dde1f8e58eb3342a4a0c31cfb9c32b" />
<input type="hidden" name="actionID" value="105" />
<input type="hidden" name="url" value="" /-->
<input type="hidden" name="mailbox" value="INBOX" />
<strong>Gebruikersnaam</strong><br>
<input type="text" tabindex="1" size=44 name="imapuser" value="" /><br>
<strong>Wachtwoord</strong><br>
<input type="password" tabindex="2" name="pass" />

<input type="hidden" name="server" value="localhost" />

        <input type="hidden" name="port" value="143" />
        <input type="hidden" name="namespace" value="" />
        <input type="hidden" name="maildomain"
value="mail1.exceptionit.net" />
        <input type="hidden" name="protocol" value="imap/notls" />
        <input type="hidden" name="realm" value="" />
		
<input type="hidden" name="folders" value="Maildir/" />

<input type="submit" class="button" name="button" tabindex="4"
value="Aanmelden" onclick="return submit_login();" />
</FORM>