protected function _dbLogin(string $userName, $password, $shopID)
    {
        $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $userId = $database->getOne($this->_getLoginQuery($userName, $password, $shopID, $this->isAdmin()));
        if (!$userId) {
            $userId = $database->getOne($this->_getLoginQueryHashedWithMD5($userName, $password, $shopID, $this->isAdmin()));
        }

        /** Return here to give other log-in mechanisms the possibility to be triggered */
        if (!$userId) {
            return;
        }

        $this->loadAuthenticatedUser($userName, $shopID);
        $this->isOutdatedPasswordHashAlgorithmUsed = true;
    }