disableregistration) { $this->redirect('login'); } if ($this->user) { requestAPI('disconnect', post: ['sid' => $this->user->session->id]); } $this->page->setTitle(__('page.account_creation')); } }