You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
437 B

  1. <?php
  2. namespace App\Controllers;
  3. use Movim\Controller\Base;
  4. class AccountController extends Base
  5. {
  6. public function dispatch()
  7. {
  8. if (\App\Configuration::get()->disableregistration) {
  9. $this->redirect('login');
  10. }
  11. if ($this->user) {
  12. requestAPI('disconnect', post: ['sid' => $this->user->session->id]);
  13. }
  14. $this->page->setTitle(__('page.account_creation'));
  15. }
  16. }