Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] [sfGuardPlugin] logowanie tylko na niektórych stronach
kot24
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 11.05.2009

Ostrzeżenie: (0%)
-----


Witam, zainstalowałem ten plugin i mam taki problem, że teraz musze się wszędzie logować w całym serwisie. Tzn. mam wyłączone logowanie w security.yml a sfguardauth działa. Jak go wyłączyć lub tylko włączyć w niektórych modułach. Od razu napisze, że tworzenie config/security.yml z is secure on nie działa. Mam to wyłączone a jednak działa.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kot24
post
Post #2





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 11.05.2009

Ostrzeżenie: (0%)
-----


  1. // app/frontend/config/security.yml
  2. default:
  3. is_secure: off



  1. // app/frontend/config/settings.yml
  2. # You can find more information about this file on the symfony website:
  3. # <a href="http://www.symfony-project.org/reference/1_4/en/04-Settings" target="_blank">http://www.symfony-project.org/reference/1_4/en/04-Settings</a>
  4.  
  5. prod:
  6. .settings:
  7. no_script_name: true
  8. logging_enabled: false
  9.  
  10. dev:
  11. .settings:
  12. error_reporting: <?php echo (E_ALL | E_STRICT)."\n" ?>
  13. web_debug: true
  14. cache: false
  15. no_script_name: false
  16. etag: false
  17.  
  18. test:
  19. .settings:
  20. error_reporting: <?php echo ((E_ALL | E_STRICT) ^ E_NOTICE)."\n" ?>
  21. cache: false
  22. web_debug: false
  23. no_script_name: false
  24. etag: false
  25.  
  26. all:
  27. .settings:
  28. # Form security secret (CSRF protection)
  29. csrf_secret: 61c066160e95ee9948041e2b0d1ed04b854773e0
  30.  
  31. # Output escaping settings
  32. escaping_strategy: true
  33. escaping_method: ESC_SPECIALCHARS
  34.  
  35. # Enable the database manager
  36. use_database: true
  37.  
  38. enabled_modules: [default, sfGuardAuth]
  39.  
  40. .actions:
  41. login_module: sfGuardAuth
  42. login_action: signin
  43.  
  44. secure_module: sfGuardAuth
  45. secure_action: secure



Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.10.2025 - 04:35