Ejemplo n.º 1
0
 public function getTodoList(ImportEvent $event)
 {
     $logins = ['Twitter', 'Google', 'Facebook'];
     $providers = $this->config->get('private/auth/providers');
     foreach ($logins as $login) {
         $enabled = false;
         foreach ($providers as $provider) {
             if ($provider['name'] === $login) {
                 $enabled = $provider['enabled'] == 'true';
                 break;
             }
         }
         $todos[] = ['name' => "Enable {$login} login provider", 'status' => $enabled ? 'complete' : 'incomplete', 'link' => '/admin/logins'];
         if ($enabled) {
             $todos[] = $this->todoMaker->createManualItem("check-{$login}-login", "Check {$login} login", "Check {$login} login app is working properly", '/login');
         }
     }
     $todos[] = $this->todoMaker->createManualItem("check-forgot-password-email", "Check forgot password email", 'Check email is being delivered and working properly', '/forgot-password');
     $event->addContent(['Authentication' => $todos ?? []]);
 }
Ejemplo n.º 2
0
 public function getTodoList(ImportEvent $event)
 {
     $todos[] = $this->todoMaker->createManualItem("check-opcache-is-working", "Check PHP's OPcache is working", 'Can be ignored during development', '/admin/debug');
     $event->addContent(['Debug' => $todos]);
 }