Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Форма входа в систему
- */
- public function loginAction()
- {
- $loginForm = new LoginForm();
- # Если запрос был не Ajax и была отправлена форма
- if ($this->request->isPost()) {
- # Данные полученные с формы входа
- $formData = [
- 'login' => $this->request->getPost('login', ['striptags','trim']),
- 'password' => $this->request->getPost('password', ['trim']),
- 'remember' => $this->request->getPost('remember', ['int'],0),
- 'csrf_token' => $this->request->getPost('csrf_token', ['trim']),
- ];
- ....
- $this->view->loginForm = $loginForm;
- $this->tag->prependTitle('Вход в систему ');
- $this->view->pick('modules/auth/login');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement