Forráskód Böngészése

Change o_regs_verify

Visman 3 éve
szülő
commit
9818b20559

+ 1 - 1
app/Models/Pages/Admin/Install.php

@@ -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,

+ 3 - 3
app/Models/Pages/Admin/Options.php

@@ -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',

+ 3 - 3
app/Models/Pages/Register.php

@@ -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;
 
             // письмо активации аккаунта отправлено