]> git.wh0rd.org - tt-rss.git/blobdiff - classes/auth/base.php
Fixing bugs found by static analysis
[tt-rss.git] / classes / auth / base.php
index 284ac1d38f9721c6754158c73f232c5fd290f40b..c77df51577cb0314582170ffbef7a67169673611 100644 (file)
@@ -1,5 +1,11 @@
 <?php
 class Auth_Base {
+       private $dbh;
+
+       function __construct() {
+               $this->dbh = Db::get();
+       }
+
        function check_password($owner_uid, $password) {
                return false;
        }
@@ -10,7 +16,7 @@ class Auth_Base {
 
        // Auto-creates specified user if allowed by system configuration
        // Can be used instead of find_user_by_login() by external auth modules
-       function auto_create_user($login) {
+       function auto_create_user($login, $password) {
                if ($login && defined('AUTH_AUTO_CREATE') && AUTH_AUTO_CREATE) {
                        $user_id = $this->find_user_by_login($login);