Auth

From: Date: Fri, 08 Mar 2002 13:30:01 +0000
Subject: Auth
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-945@lists.php.net to get a copy of this message
i have problems with pears auth modul..... it seems that it connects with the db, but when i insert username and password., i dont let me in... maybe you have an idea whats wrong. greetings, marc beyerlin this is my code: require_once ( "Auth.php" ); require_once ( "HTML/IT.php" ); function loginFunction( ) { $tpl = new IntegratedTemplate( "../templates" ); $tpl->loadTemplatefile( "loginForm.htm", false, false ); $tpl->setCurrentBlock( "cell" ) ; $tpl->parseCurrentBlock( "cell" ) ; $tpl->show(); } $user = 'mysqlusr'; $pass = 'mysqlpass'; $host = '192.168.0.90'; $db_name = 'gbsoft'; $dsn = "mysql://$user:$pass@$host/$db_name"; $params = array ( "dsn" => $dsn, "table" => "test", "username" => "username", "password" => "password" ); $a = new Auth( "DB", $params , "loginFunction" ); $a->start(); echo $username,$password; if ( $a->getAuth() ) { echo "Ok"; } else { echo "no"; } -- ------------------------------------------------------- magic garden GmbH - Agentur für Informationsarchitektur Hermannstr. 15 | 70178 Stuttgart (Am Feuersee) http://www.magic-garden.de | beyerlin@magic-garden.de Tel (07 11) 619 57-31 | Fax (07 11) 615 01 38

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