1 Dec 2002 02:49
Patch for Auth.php
Jon Wood <jon <at> thewoods.org>
2002-12-01 01:49:27 GMT
2002-12-01 01:49:27 GMT
Below is a patch to Auth.php fixing the creation of the Auth object in the advanced example, including the DSN in the options array. Jon ------------------------------------ diff -u -r1.44 Auth.php --- Auth.php 1 Nov 2002 10:37:27 -0000 1.44 +++ Auth.php 1 Dec 2002 01:44:13 -0000 <at> <at> -73,12 +73,10 <at> <at> * Set up the Auth class in an auto_prepend file like this: * * require_once "Auth/Auth.php"; - * - * // define dsn - * $dsn = "mysql://martin:test <at> example.com/test"; * * // set options * $options = array( + * 'dsn' => 'mysql://martin:test <at> example.com/test', * 'table' => 'myuser', * 'usernamecol' => 'userlogin', * 'passwordcol' => 'cryptpassword' <at> <at> -91,7 +89,7 <at> <at> * } * * // create auth object - * $myauth = new Auth( $dsn, $options, 'myloginform', true); + * $myauth = new Auth($options, 'myloginform', true);(Continue reading)
RSS Feed