Sfoglia il codice sorgente

Minor changes for Page\Register

Visman 4 anni fa
parent
commit
5dc72e6619
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      app/Models/Pages/Register.php

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

@@ -282,8 +282,6 @@ class Register extends Page
         if (
         if (
             ! \hash_equals($args['hash'], $this->c->Secury->hash($args['id'] . $args['key']))
             ! \hash_equals($args['hash'], $this->c->Secury->hash($args['id'] . $args['key']))
             || ! ($user = $this->c->users->load((int) $args['id'])) instanceof User
             || ! ($user = $this->c->users->load((int) $args['id'])) instanceof User
-            || $user->isGuest
-            || empty($user->activate_string)
             || ! \hash_equals($user->activate_string, $args['key'])
             || ! \hash_equals($user->activate_string, $args['key'])
         ) {
         ) {
             $this->c->Log->warning('Account activation: fail', [
             $this->c->Log->warning('Account activation: fail', [