[PHPLIB] add_user_md5.php3 - problem or bug? From: cain (cain <email protected>)
Date: 11/10/99

i was just trying out the ADD_USER_MD5.PHP3 to find out how to add users
and i caught an javascript error, when i wanted to change the
users permissions
and i found out:
the form input field for the permissions is set up as an array
with
    <select multiple name="perms[]">
but when changing the users permissions or on adding a new user
the DB field perm in auth_user is filled with "Array" insted of the
permission(s)
because the script uses perm only as a scalar not as an array
    $query = "insert into auth_user_md5 values('$u_id','$username','$password','$perms')";
(see last parameter)
is that a bug or am i doing something wrong?
is there a fix or update, or is it that i have an old version

Kristian: thank you for your instant replies on all the questions
( especially about the authentication via md5 i was asking yesterday
    i had just forgotten about your session managment )
you have done a great job on this lib - thanks

cain

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.