Not Reviewed
Show More
Add another comment
| @@ -36,7 +36,7 $dbParams = array( | |||
|
|
36 | 36 | 'user' => DB_WRITE_USER, |
|
|
37 | 37 | 'password' => DB_WRITE_PASS, |
|
|
38 | 38 | 'host' => DB_SERVER, |
|
|
39 |
'driver' => 'mysql |
|
|
|
39 | 'driver' => 'pdo_mysql', | |
|
|
40 | 40 | 'charset' => 'utf8mb4' |
|
|
41 | 41 | ); |
|
|
42 | 42 | $dbConnection = \Doctrine\DBAL\DriverManager::getConnection($dbParams, $dbConfig); |
| @@ -77,7 +77,7 function mt_login($username, $password, $already_hashed = false) { | |||
|
|
77 | 77 | } |
|
|
78 | 78 | |
|
|
79 | 79 | $username = sanitize_username( $username ); |
|
|
80 | ||
|
|
80 | ||
|
|
81 | 81 | // Get user info from the database |
|
|
82 | 82 | $sql = 'SELECT * FROM contributor WHERE name LIKE ?'; |
|
|
83 | 83 | $stmt = $dbConnection->executeQuery($sql, array($username)); |
Comments 0
You need to be logged in to leave comments.
Login now
