<commit_before><?php

namespace Admin\Controller;

use Zend\View\Model\ViewModel;
use Core\Controller\ActionController;
use Admin\Form\Login;

/**
 * Controlador que gerencia os posts
 *
 * @category Admin
 * @package Controller
 * @author <NAME> <<EMAIL>>
 */
class AuthController extends ActionController {

    public function indexAction() {
        $form = new Login();
        
        $teste;
        return new ViewModel(array(
            'form' => $form
        ));
    }

    public function loginAction() {
        $request = $this->getRequest();
        if (!$request->isPost()) {
            throw new \Exception('Acesso inválido');
        }

        $data = $request->getPost();
        $service = $this->getService('Admin\Service\Auth');
        $service->authenticate(
                array('login' => $data['login'], 'password' => $data['password'])
        );
        return $this->redirect()->toUrl('/');
    }

    public function logoutAction() {
        $service = $this->getService('Admin\Service\Auth');
        $service->logout();
        return $this->redirect()->toUrl('/');
    }
<commit_msg>teste porra<commit_after><?php

namespace Admin\Controller;

use Zend\View\Model\ViewModel;
use Core\Controller\ActionController;
use Admin\Form\Login;

/**
 * Controlador que gerencia os posts
 *
 * @category Admin
 * @package Controller
 * @author <NAME> <<EMAIL>>
 */
class AuthController extends ActionController {

    public function indexAction() {
        $form = new Login();
<<<<<<< HEAD
        
        $teste;
=======
>>>>>>> origin/master
        return new ViewModel(array(
            'form' => $form
        ));
    }

    public function loginAction() {
        $request = $this->getRequest();
        if (!$request->isPost()) {
            throw new \Exception('Acesso inválido');
        }

        $data = $request->getPost();
        $service = $this->getService('Admin\Service\Auth');
        $service->authenticate(
                array('login' => $data['login'], 'password' => $data['password'])
        );
        return $this->redirect()->toUrl('/');
    }

    public function logoutAction() {
        $service = $this->getService('Admin\Service\Auth');
        $service->logout();
        return $this->redirect()->toUrl('/');
    }

{'fraction_non_alphanumeric': 0.16805251641137856, 'fraction_numerical': 0.0, 'mean_word_length': 2.4531722054380665, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '821739', 'n_tokens_mistral': 650, 'n_tokens_neox': 637, 'n_words': 137}