mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Добавлена проверка корректности ключа collector (#226)
This commit is contained in:
parent
2192a84379
commit
37c4ca835e
@ -1,3 +1,6 @@
|
||||
## v3.6.9
|
||||
* Добавлена проверка корректности введеного ключа при подключении Daemon Collector
|
||||
|
||||
## v3.6.8
|
||||
* Исправлен перевод для поля "ИНН"
|
||||
|
||||
|
@ -404,7 +404,7 @@ class RetailcrmSettingsValidator
|
||||
|
||||
private function validateCollector($collectorActive, $collectorKey)
|
||||
{
|
||||
return !$collectorActive || '' !== $collectorKey;
|
||||
return !$collectorActive || preg_match("/^RC-[0-9]{10}-[0-9]{1,2}$/", $collectorKey);
|
||||
}
|
||||
|
||||
private function addError($field, $message)
|
||||
|
@ -48,7 +48,7 @@ require_once dirname(__FILE__) . '/bootstrap.php';
|
||||
|
||||
class RetailCRM extends Module
|
||||
{
|
||||
const VERSION = '3.6.8';
|
||||
const VERSION = '3.6.9';
|
||||
|
||||
const API_URL = 'RETAILCRM_ADDRESS';
|
||||
const API_KEY = 'RETAILCRM_API_TOKEN';
|
||||
|
Loading…
x
Reference in New Issue
Block a user