Skip to content
Snippets Groups Projects
  1. Jan 07, 2019
  2. Oct 14, 2018
  3. Jun 04, 2018
  4. Jul 27, 2017
  5. Apr 13, 2017
    • Lukas Reschke's avatar
      Make BruteForceProtection annotation more clever · 8149945a
      Lukas Reschke authored
      
      This makes the new `@BruteForceProtection` annotation more clever and moves the relevant code into it's own middleware.
      
      Basically you can now set `@BruteForceProtection(action=$key)` as annotation and that will make the controller bruteforce protected. However, the difference to before is that you need to call `$responmse->throttle()` to increase the counter. Before the counter was increased every time which leads to all kind of unexpected problems.
      
      Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
      8149945a
  6. Mar 29, 2017
  7. Mar 16, 2017
  8. Jan 09, 2017
  9. May 20, 2016
    • Joas Schilling's avatar
      Move tests/ to PSR-4 (#24731) · 94ad54ec
      Joas Schilling authored
      * Move a-b to PSR-4
      
      * Move c-d to PSR-4
      
      * Move e+g to PSR-4
      
      * Move h-l to PSR-4
      
      * Move m-r to PSR-4
      
      * Move s-u to PSR-4
      
      * Move files/ to PSR-4
      
      * Move remaining tests to PSR-4
      
      * Remove Test\ from old autoloader
      94ad54ec
  10. May 18, 2016
  11. Sep 29, 2015
  12. Aug 10, 2015
  13. Jun 15, 2015
  14. Feb 16, 2015
  15. Nov 27, 2014
    • Lukas Reschke's avatar
      Add functions to modify cookies to response class · 04813907
      Lukas Reschke authored
      Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code.
      
      This PR adds some basic functionalities to add and invalidate cookies.
      
      Usage:
      ```php
      $response = new TemplateResponse(...);
      $response->addCookie('foo', 'bar');
      $response->invalidateCookie('foo');
      $response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00'));
      ```
      
      Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.
      04813907
  16. Nov 19, 2014
  17. Oct 29, 2014
    • Bernhard Posselt's avatar
      add dataresponse · 0696099b
      Bernhard Posselt authored
      fix docstrings
      
      adjust copyright date
      
      another copyright date update
      
      another header update
      
      implement third headers argument, fix indention, fix docstrings
      
      fix docstrings
      0696099b
  18. May 11, 2014
  19. May 09, 2014
    • Bernhard Posselt's avatar
      add cors middleware · 9a4d204b
      Bernhard Posselt authored
      remove methodannotationreader namespace
      
      fix namespace for server container
      
      fix tests
      
      fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request
      
      remove uneeded  local in cors middleware registratio
      
      dont uppercase cors to easily use it from routes
      
      fix indention
      
      comment fixes
      
      explicitely set allow credentials header to false
      
      dont depend on better controllers PR, fix that stuff later
      
      split cors methods to be in a seperate controller for exposing apis
      
      remove protected definitions from apicontroller since controller has it
      9a4d204b
  20. Mar 09, 2014
  21. Feb 27, 2014
  22. Feb 19, 2014
  23. Oct 23, 2013
  24. Aug 20, 2013
  25. Aug 17, 2013
Loading