Forum OpenACS Development: add user from an application

Collapse
Posted by Iuri Sampaio on
I want to syncronize an application, a package i created, in order to every time a contact is inserted it is also registered as new user in the system.

i tried to simply use auth::create_user in the block "new-data" of the ad_form from my application.

auth::create_user -user_id $party_id \
-first_names $first_names \
-last_name $last_name \
-email $email \

However, it doesn't work as i expected. The user is not added to the system.

what is the API that does the job?

Collapse
Posted by Iuri Sampaio on
The API is auth::create_user however it must be correctly used.

such as in the case bellow

auth::create_user -user_id $party_id \
-first_names $first_names \
-last_name $last_name \
-email $email \