mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-04 21:53:36 +03:00
Исправлена валидация ключа Daemon collector (#227)
This commit is contained in:
parent
37c4ca835e
commit
cc2f33eb7b
4 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
## v3.6.10
|
||||
* Изменена валидация ключа коллектора
|
||||
|
||||
## v3.6.9
|
||||
* Добавлена проверка корректности введеного ключа при подключении Daemon Collector
|
||||
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
3.6.9
|
||||
3.6.10
|
||||
|
|
|
@ -404,7 +404,7 @@ class RetailcrmSettingsValidator
|
|||
|
||||
private function validateCollector($collectorActive, $collectorKey)
|
||||
{
|
||||
return !$collectorActive || preg_match("/^RC-[0-9]{10}-[0-9]{1,2}$/", $collectorKey);
|
||||
return !$collectorActive || preg_match('/^RC-[0-9]{11}-[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.9';
|
||||
const VERSION = '3.6.10';
|
||||
|
||||
const API_URL = 'RETAILCRM_ADDRESS';
|
||||
const API_KEY = 'RETAILCRM_API_TOKEN';
|
||||
|
|
Loading…
Add table
Reference in a new issue