Re: How to create test table for auth

From: Date: Sun, 16 Mar 2003 21:06:32 +0000
Subject: Re: How to create test table for auth
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4263@lists.php.net to get a copy of this message
Try this an see if it works: http://jaga.us/pear/pearAuth.zip Sorry about the .zip I have to get gzip working. -- Kevin A. k@jaga.us (hey, I hate to waste your time typing) "Peter Meth" <pmeth@softersoftware.com> wrote in message news:000401c2e907$d67af360$8a01a8c0@PETER... > Just started using Auth 1.2.0. I tried to put together a sample page. > I used the example from Auth.php lines 73-105. When I run it I see the > default Auth login screen. > > I created a table called users and set username as 'user1', with no > password. > > When I try to log in, it says 'Wrong Login data' + the rest of the login > screen. > > Here's my code if this helps: > > require_once "Auth/Auth.php"; > > $dsn = "mysql://username:password@localhost/database"; > $options = array( > 'table' => 'users', > 'dsn' => $dsn > ); > > $a = new Auth("DB",$options); > $a->start(); > if ($a->getAuth()) { > echo "Welcome user ".$a->getUsername()."!<br />\n"; > } > > Any help? > > Peter Meth >

« previous php.pear.general (#4263) next »