Browse Source

Fix activate() in Register page

Visman 2 years ago
parent
commit
d896ff2c08
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Models/Pages/Register.php

+ 2 - 0
app/Models/Pages/Register.php

@@ -373,6 +373,8 @@ class Register extends Page
      */
      */
     public function activate(array $args): Page
     public function activate(array $args): Page
     {
     {
+        $user = null;
+
         if (
         if (
             ! $this->c->Csrf->verify($args['hash'], 'RegActivate', $args)
             ! $this->c->Csrf->verify($args['hash'], 'RegActivate', $args)
             || ! ($user = $this->c->users->load($args['id'])) instanceof User
             || ! ($user = $this->c->users->load($args['id'])) instanceof User