Advertisement
weacom

Untitled

Sep 4th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1.    /**
  2.      * Форма входа в систему
  3.      */
  4.     public function loginAction()
  5.     {
  6.         $loginForm = new LoginForm();
  7.  
  8.         # Если запрос был не Ajax и была отправлена форма
  9.        if ($this->request->isPost()) {
  10.             # Данные полученные с формы входа
  11.            $formData = [
  12.                 'login'      => $this->request->getPost('login', ['striptags','trim']),
  13.                 'password'   => $this->request->getPost('password', ['trim']),
  14.                 'remember'   => $this->request->getPost('remember', ['int'],0),
  15.                 'csrf_token' => $this->request->getPost('csrf_token', ['trim']),
  16.             ];
  17.     ....
  18.         $this->view->loginForm = $loginForm;
  19.         $this->tag->prependTitle('Вход в систему ');
  20.         $this->view->pick('modules/auth/login');
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement