1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-13 19:44:05 +02:00

Update examples of how to provide a database connection

This commit is contained in:
Marco
2016-09-15 23:51:29 +02:00
parent 2a2d93f534
commit d94243f19d
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ header('Content-type: text/html; charset=utf-8');
require __DIR__.'/../vendor/autoload.php';
$db = new PDO('mysql:dbname=php_auth;host=127.0.0.1;charset=utf8mb4', 'root', '');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$auth = new \Delight\Auth\Auth($db);