From: <pre...@us...> - 2002-10-01 02:08:51
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv9325/core Modified Files: user_api.php Log Message: fixed user_create to honor access_level Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- user_api.php 1 Oct 2002 00:17:57 -0000 1.12 +++ user_api.php 1 Oct 2002 02:08:47 -0000 1.13 @@ -36,8 +36,8 @@ $t_cookie_string = create_cookie_string( $t_seed ); $c_cookie_string = db_prepare_string( $t_cookie_string ); - $query = "INSERT INTO phpWN_user_table (username, password, email, cookie_string, enabled) - VALUES ('$c_username', '$c_encrypted_password', '$c_email', '$c_cookie_string', 1)"; + $query = "INSERT INTO phpWN_user_table (username, password, email, cookie_string, access_level, enabled) + VALUES ('$c_username', '$c_encrypted_password', '$c_email', '$c_cookie_string', '$p_access_level', 1)"; $result = mysql_query($query); return( false !== $result ); |