Fix activate() in Register page
This commit is contained in:
parent
d564cc5de8
commit
d896ff2c08
1 changed files with 2 additions and 0 deletions
|
@ -373,6 +373,8 @@ class Register extends Page
|
|||
*/
|
||||
public function activate(array $args): Page
|
||||
{
|
||||
$user = null;
|
||||
|
||||
if (
|
||||
! $this->c->Csrf->verify($args['hash'], 'RegActivate', $args)
|
||||
|| ! ($user = $this->c->users->load($args['id'])) instanceof User
|
||||
|
|
Loading…
Add table
Reference in a new issue