Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] Getting list of available values in my (@args) = @_;

Quote Reply
Re: [Paul] Getting list of available values in my (@args) = @_; In reply to
Thanks Paul. At the moment, my code looks like this, so I don't see how could be using the string as a hashref.



sub user_signup {
# -------------------------------------------------------------------

GT::Plugins->action ( STOP );

print $IN->header();

}

the hook I am using is auth_add_user

this is the relevant code in User.pm:

Code:


sub add {
# -------------------------------------------------------------------
# Add a user.
#
init();
my $self = shift;
my $p;
if (ref $_[0] eq 'HASH') { $p = $_[0]; }
else { $p = {@_}; }

if (! Links::Authenticate::auth ('valid_format', { Username => $p->{Username} })) {
return $self->error ('INVALIDFORMAT', 'WARN', $p->{Username});
}

my $h = Links::Authenticate::auth ('add_user', { Username => $p->{Username}, Password => $p->{Password} })
or return $self->error ('AUTHERROR', 'WARN', $Links::Authenticate::error);

-->HERE (Line 57)<-- $p->{Username} = $h->{Username};
$p->{Password} = $h->{Password};

return $self->SUPER::add($p);
}
Subject Author Views Date
Thread; hot thread Getting list of available values in my (@args) = @_; Dafyyd 10293 Aug 4, 2002, 10:53 AM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Dafyyd 10030 Aug 4, 2002, 10:59 AM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Paul 10021 Aug 4, 2002, 11:08 AM
Post; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 10025 Aug 4, 2002, 11:16 AM
Post; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 10085 Aug 4, 2002, 11:21 AM
Thread; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 10112 Aug 4, 2002, 11:23 AM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Paul 10045 Aug 4, 2002, 11:42 AM
Thread; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 10160 Aug 4, 2002, 12:01 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Dafyyd 10010 Aug 4, 2002, 12:02 PM
Post; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Dafyyd 10106 Aug 4, 2002, 12:04 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Paul 9966 Aug 4, 2002, 12:08 PM
Post; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 9975 Aug 4, 2002, 12:11 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Dafyyd 9997 Aug 4, 2002, 12:30 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Dafyyd 10092 Aug 4, 2002, 12:39 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Paul 10004 Aug 4, 2002, 12:59 PM
Post; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 10051 Aug 4, 2002, 1:05 PM
Thread; hot thread Re: [Paul] Getting list of available values in my (@args) = @_;
Dafyyd 10048 Aug 4, 2002, 1:10 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
Dafyyd 9972 Aug 4, 2002, 1:21 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
yogi 10023 Aug 4, 2002, 1:23 PM
Post; hot thread Re: [yogi] Getting list of available values in my (@args) = @_;
Dafyyd 9977 Aug 4, 2002, 1:47 PM
Post; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
yogi 9993 Aug 4, 2002, 1:21 PM
Thread; hot thread Re: [giovanni] Getting list of available values in my (@args) = @_;
yogi 10084 Aug 4, 2002, 1:00 PM
Post; hot thread Re: [yogi] Getting list of available values in my (@args) = @_;
Dafyyd 9965 Aug 4, 2002, 1:06 PM