Change o_regs_verify

This commit is contained in:
Visman 2021-12-19 13:36:42 +07:00
parent 89d823d508
commit 9818b20559
3 changed files with 7 additions and 7 deletions

View file

@ -1244,7 +1244,7 @@ class Install extends Admin
'o_smtp_pass' => NULL,
'b_smtp_ssl' => 0,
'b_regs_allow' => 1,
'o_regs_verify' => 1,
'b_regs_verify' => 1,
'o_announcement' => 0,
'o_announcement_message' => __('Announcement '),
'o_rules' => 0,

View file

@ -77,7 +77,7 @@ class Options extends Admin
'changeSmtpPassword' => 'checkbox',
'b_smtp_ssl' => 'required|integer|in:0,1',
'b_regs_allow' => 'required|integer|in:0,1',
'o_regs_verify' => 'required|integer|in:0,1',
'b_regs_verify' => 'required|integer|in:0,1',
'b_regs_report' => 'required|integer|in:0,1',
'o_rules' => 'required|integer|in:0,1|check_empty:o_rules_message',
'o_rules_message' => 'string:trim|max:65000 bytes|html',
@ -630,9 +630,9 @@ class Options extends Admin
'caption' => 'Allow new label',
'help' => 'Allow new help',
],
'o_regs_verify' => [
'b_regs_verify' => [
'type' => 'radio',
'value' => $config->o_regs_verify,
'value' => $config->b_regs_verify,
'values' => $yn,
'caption' => 'Verify label',
'help' => 'Verify help',

View file

@ -149,7 +149,7 @@ class Register extends Page
*/
protected function regEnd(Validator $v): Page
{
if ('1' == $this->c->config->o_regs_verify) {
if (1 == $this->c->config->b_regs_verify) {
$groupId = FORK_GROUP_UNVERIFIED;
$key = $this->c->Secury->randomPass(31);
} else {
@ -225,7 +225,7 @@ class Register extends Page
$this->c->Lang->load('register');
// отправка письма активации аккаунта
if ('1' == $this->c->config->o_regs_verify) {
if (1 == $this->c->config->b_regs_verify) {
$this->c->Csrf->setHashExpiration(259200); // ???? хэш действует 72 часа
$link = $this->c->Router->link(
@ -328,7 +328,7 @@ class Register extends Page
$this->c->Lang->load('register');
// фейк отправки письма активации аккаунта
if ('1' == $this->c->config->o_regs_verify) {
if (1 == $this->c->config->b_regs_verify) {
$isSent = true;
// письмо активации аккаунта отправлено