[ic] Difficulty with $Tag->userdb( ... )

David Totten interchange-users@lists.akopia.com
Tue Jul 3 17:45:51 2001


On Tue, Jul 03, 2001 at 01:19:16PM -0700, Jeff Carnahan wrote:
> I'm trying to use $Tag->userdb( ... ) to create a new account in the user
> database, yet when I use (in a parsed page):
> 
> $Tag->userdb({ function => 'new_account',
>                username => $Values->{email},
>                log => 1, });
>

Are you trying to do this in a [perl] tag, or in a usertag, or an autoload?
My guess is that you are trying to do this from a [perl] tag, and you
haven't told safe that you want to be able to look at it. You can do this
by adding the tables option to it:

[perl tables=userdb]
  .
  .
  .
  
[/perl]

you may have to add [flag type=write tables="userdb"] before the [perl] tag
as well. 

Dave Totten