Hello,
I made a custom login for my users, which works fine. I want to store a group name for each user, that has been registered. In the preview mode every works and the additionally information will be stored in the database. The problem lies at the public site. If a new user tries to register, the group name won’t be in the extra database.
This is the code which is located in the register lightweight. This will be triggered if the users press the register button. Before this code will be executed, the user will be registered in the database.
wixData . insert (, to_insert )
. then (( results ) => {
console . log ( “Group name registered” );
}). catch ( ( err ) =>{
let error_msg = err ;
console . log ( error_msg );
});
Thank you in advance!