Date: 11/29/00
- Next message: D. Wade: "[phplib] PHP CGI"
- Previous message: Christopher Vrooman: "[phplib] 'Un'expected response using crclogin w/ MD5.js"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi folks!
I used the example-administration to create users!
But now I noticed, that there seemed to be a bug
in the MD5-Javascript-Function. The following code
always creates an md5-value for a password, even
when I doesn't insert a password:
function doAddUser() {
document.add.hashpass.value = MD5(document.add.password.value);
alert(document.form.hashpass.value);
document.add.password.value = "";
document.add.submit();
}
// -->
</script>
<form name="add" method="post" action="<?php $sess->pself_url() ?>">
<tr valign=middle align=left>
<td><input type="text" name="username" size=12 maxlength=32 value=""></td>
<td><input type="password" name="password" size=12 maxlength=32 value=""></td>
<td><?php print $perm->perm_sel("perms","user");?></td>
<td align=right><input onClick="doAddUser(); return true;" type="submit" name="create" value="Create User"></td>
<input type="hidden" name="hashpass" value="">
</tr>
</form>
Where is the mistake! It's important for me, that there won't created a
value for password, if I didn't type on in!
Thank you,
Dominic
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: D. Wade: "[phplib] PHP CGI"
- Previous message: Christopher Vrooman: "[phplib] 'Un'expected response using crclogin w/ MD5.js"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

