mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-12-01 17:46:04 +03:00
12 lines
338 B
PHP
12 lines
338 B
PHP
|
<?php
|
||
|
|
||
|
class ModelExtensionRetailcrmApi extends Model
|
||
|
{
|
||
|
public function login($username, $key)
|
||
|
{
|
||
|
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "api` WHERE `username` = '" . $this->db->escape($username) . "' AND `key` = '" . $this->db->escape($key) . "' AND status = '1'");
|
||
|
|
||
|
return $query->row;
|
||
|
}
|
||
|
}
|