private function getUserByLoginAndPassword($login, $password)
 {
     $password = SecurityUtil::encrypt($password);
     $user = $this->userDAO->getByLoginAndPassword($login, $password);
     if (empty($user)) {
         PhException::throwErrors(['User_IdNotFound' => 1]);
     }
     return $user;
 }
 private function encryptUserPassword(&$user)
 {
     $user['password'] = SecurityUtil::encrypt($user['password']);
 }