change to enable to login by hiting return after password

(as talked with seek3r)
This commit is contained in:
Ralf Becker 2001-10-06 08:12:33 +00:00
parent a6f239235c
commit 96689fbfca
8 changed files with 16 additions and 15 deletions

View File

@ -145,7 +145,8 @@
unset($sslattributes); unset($sslattributes);
} }
if (isset($HTTP_POST_VARS['submit']) && $HTTP_POST_VARS['submit'] || $submit_x || $submit_y) if (isset($HTTP_POST_VARS['submitit']) && $HTTP_POST_VARS['submitit'] || $submit_x || $submit_y ||
isset($HTTP_POST_VARS['passwd']) && $HTTP_POST_VARS['passwd']) // enable konqueror to login via Return
{ {
if (getenv(REQUEST_METHOD) != 'POST' && !isset($PHP_AUTH_USER) && !isset($HTTP_SERVER_VARS['SSL_CLIENT_S_DN'])) if (getenv(REQUEST_METHOD) != 'POST' && !isset($PHP_AUTH_USER) && !isset($HTTP_SERVER_VARS['SSL_CLIENT_S_DN']))
{ {

View File

@ -41,10 +41,10 @@
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_password}:&nbsp;</font></TD> <TD align="RIGHT"><font color="#000000">{lang_password}:&nbsp;</font></TD>
<TD><input name="passwd" type="password"></TD> <TD><input name="passwd" type="password" onChange="this.form.submit()"></TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD colspan="2" align="CENTER"><input type="submit" value="{lang_login}" name="submit"></TD> <TD colspan="2" align="CENTER"><input type="submit" value="{lang_login}" name="submitit"></TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD colspan="2" align="RIGHT"><font color="#000000" size="-1">{version}</font></TD> <TD colspan="2" align="RIGHT"><font color="#000000" size="-1">{version}</font></TD>

View File

@ -43,12 +43,12 @@
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_password}:</font></TD> <TD align="RIGHT"><font color="#000000">{lang_password}:</font></TD>
<TD align="RIGHT"><input name="passwd" type="password"></TD> <TD align="RIGHT"><input name="passwd" type="password" onChange="this.form.submit()"></TD>
<TD>&nbsp;</TD> <TD>&nbsp;</TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD colspan="3" align="CENTER"> <TD colspan="3" align="CENTER">
<input type="submit" value="{lang_login}" name="submit"> <input type="submit" value="{lang_login}" name="submitit">
</TD> </TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">

View File

@ -43,12 +43,12 @@
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_password}:</font></TD> <TD align="RIGHT"><font color="#000000">{lang_password}:</font></TD>
<TD align="RIGHT"><input name="passwd" type="password"></TD> <TD align="RIGHT"><input name="passwd" type="password" onChange="this.form.submit()"></TD>
<TD>&nbsp;</TD> <TD>&nbsp;</TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD colspan="3" align="CENTER"> <TD colspan="3" align="CENTER">
<input type="submit" value="{lang_login}" name="submit"> <input type="submit" value="{lang_login}" name="submitit">
</TD> </TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">

View File

@ -35,11 +35,11 @@
</tr> </tr>
<tr bgcolor="#e6e6e6"> <tr bgcolor="#e6e6e6">
<td align="right"><font color="#000000">{lang_password}:&nbsp;</font></td> <td align="right"><font color="#000000">{lang_password}:&nbsp;</font></td>
<td><input name="passwd" type="password"></td> <td><input name="passwd" type="password" onChange="this.form.submit()"></td>
</tr> </tr>
<tr bgcolor="#e6e6e6"> <tr bgcolor="#e6e6e6">
<td colspan="2" align="center"> <td colspan="2" align="center">
<input type="submit" value="{lang_login}" name="submit"> <input type="submit" value="{lang_login}" name="submitit">
</td> </td>
</tr> </tr>
<tr bgcolor="#e6e6e6"> <tr bgcolor="#e6e6e6">

View File

@ -36,12 +36,12 @@
</tr> </tr>
<tr bgcolor="#e6e6e6"> <tr bgcolor="#e6e6e6">
<td align="right"><font color="#000000">{lang_password}:</font></td> <td align="right"><font color="#000000">{lang_password}:</font></td>
<td align="right"><input name="passwd" type="password"></td> <td align="right"><input name="passwd" type="password" onChange="this.form.submit()"></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr bgcolor="#e6e6e6"> <tr bgcolor="#e6e6e6">
<td colspan="3" align="center"> <td colspan="3" align="center">
<input type="submit" value="{lang_login}" name="submit"> <input type="submit" value="{lang_login}" name="submitit">
</td> </td>
</tr> </tr>
<tr bgcolor="#e6e6e6"> <tr bgcolor="#e6e6e6">

View File

@ -41,11 +41,11 @@
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_password}:&nbsp;</font></TD> <TD align="RIGHT"><font color="#000000">{lang_password}:&nbsp;</font></TD>
<TD><input name="passwd" type="password"></TD> <TD><input name="passwd" type="password" onChange="this.form.submit()"></TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD colspan="2" align="CENTER"> <TD colspan="2" align="CENTER">
<input type="submit" value="{lang_login}" name="submit"> <input type="submit" value="{lang_login}" name="submitit">
</TD> </TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">

View File

@ -42,12 +42,12 @@
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD align="RIGHT"><font color="#000000">{lang_password}:</font></TD> <TD align="RIGHT"><font color="#000000">{lang_password}:</font></TD>
<TD align="RIGHT"><input name="passwd" type="password"></TD> <TD align="RIGHT"><input name="passwd" type="password" onChange="this.form.submit()"></TD>
<TD>&nbsp;</TD> <TD>&nbsp;</TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">
<TD colspan="3" align="CENTER"> <TD colspan="3" align="CENTER">
<input type="submit" value="{lang_login}" name="submit"> <input type="submit" value="{lang_login}" name="submitit">
</TD> </TD>
</TR> </TR>
<TR bgcolor="#e6e6e6"> <TR bgcolor="#e6e6e6">