Browse code

bug_fix (#374): 'sc add' didn't work because of not filling in phplib_id; now we put the authentication hash value in it

Jiri Kuthan authored on 30/09/2002 18:43:44
Showing 1 changed files
... ...
@@ -50,6 +50,7 @@ SUBSCRIBER_COLUMN='user_id'
50 50
 EMAIL_COLUMN=email_address
51 51
 SUB_CREATED_COLUMN=datetime_created
52 52
 SUB_MODIFIED_COLUMN=datetime_modified
53
+PHP_LIB_COLUMN=phplib_id
53 54
 
54 55
 # acl table
55 56
 ACL_TABLE=grp
... ...
@@ -467,8 +468,9 @@ case $1 in
467 468
 
468 469
 		QUERY="insert into $TABLE \
469 470
 				($SUBSCRIBER_COLUMN,$REALM_COLUMN,$HA1_COLUMN,\
470
-				$HA1B_COLUMN,$PASSWORD_COLUMN,$EMAIL_COLUMN, $SUB_CREATED_COLUMN) \
471
-				values ('$1','$SIP_DOMAIN','$HA1','$HA1B','$2', '$3', now() );";
471
+				$HA1B_COLUMN,$PASSWORD_COLUMN,$EMAIL_COLUMN, $SUB_CREATED_COLUMN,  \
472
+				$PHP_LIB_COLUMN ) \
473
+				values ('$1','$SIP_DOMAIN','$HA1','$HA1B','$2', '$3', now(), '$HA1' );";
472 474
 		sql_query "$QUERY"
473 475
 		if [ $? -ne 0 ] ; then
474 476
 			echo "introducing a new user to the database failed"