OpenCart 🇺🇦

Схема

protected mixed validate ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

if ((utf8_strlen($this->request->post['password']) < 4) || (utf8_strlen($this->request->post['password']) > 20)) {
	$this->error['password'] = $this->language->get('error_password');
}

if ($this->request->post['confirm'] != $this->request->post['password']) {
	$this->error['confirm'] = $this->language->get('error_confirm');
}

if (!$this->error) {
	return true;
} else {
	return false;
}