For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > June 2005 > WWW::Authen::Simple table lookup









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author WWW::Authen::Simple table lookup
iain@waldonet.net.mt

2005-06-08, 8:57 am

I am trying to use the above modules for a login application. My
existing database structure uses the table 'users' to hold account
information that I would like the lookup performd on. I've therefore
created the following to reflect this:

*** START ***
if ($url{mode} eq undef){&page_login;}

my $simple = WWW::Authen::Simple->new(
db => $dbconn,
cookie_domain => $defDomain,
conf => {
session_table => {
_table => 'sessions',
login => 'username',
address => 'address',
ticket => 'ticket',
point => 'point',
},
user_table => {
_table => 'users',
login => 'email',
passwd => 'clear',
},
},
);
$simple->logout() if $url{mode} eq "logout";
$simple->login( $url{loginUser}, $url{loginPass} );
unless ($simple->logged_in())
{
print redirect('/cgi-bin/mta.pl');
}
*** END ***

My problem now is that according to my apache error logs the module
seems to still be looking for a table named 'Users'.

Am I missing something here??

Regs.

Iain.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com