Ejemplo n.º 1
0
 public function login($moe)
 {
     !Auth::isLogged() || $moe->reroute('@admin');
     if ($moe->isPost()) {
         !Auth::attempt($moe->get('POST.username'), $moe->get('POST.password')) || $moe->reroute('@admin');
         $moe->set('message', 'Login gagal!');
     }
     $moe->set('TEMPLATE', null);
     $moe->send('admin/login');
 }