Skip to content

Update the doc urls #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions app/config/security.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
security:
encoders:
# Our user class and the algorithm we'll use to encode passwords
# http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password
# http://symfony.com/doc/current/security.html#c-encoding-the-user-s-password
AppBundle\Entity\User: bcrypt

providers:
# in this example, users are stored via Doctrine in the database
# http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
# In this example, users are stored via Doctrine in the database
# To see the users at src/AppBundle/DataFixtures/ORM/LoadFixtures.php
# To load users from somewhere else: http://symfony.com/doc/current/cookbook/security/custom_provider.html
# To load users from somewhere else: http://symfony.com/doc/current/security/custom_provider.html
database_users:
entity: { class: AppBundle:User, property: username }

# http://symfony.com/doc/current/book/security.html#firewalls-authentication
# http://symfony.com/doc/current/security.html#initial-security-yml-setup-authentication
firewalls:
secured_area:
# this firewall applies to all URLs
Expand All @@ -22,15 +23,15 @@ security:
anonymous: true

# This allows the user to login by submitting a username and password
# Reference: http://symfony.com/doc/current/cookbook/security/form_login_setup.html
# Reference: http://symfony.com/doc/current/security/form_login_setup.html
form_login:
# The route name that the login form submits to
check_path: security_login
# The name of the route where the login form lives
# When the user tries to access a protected page, they are redirected here
login_path: security_login
# Secure the login form against CSRF
# Reference: http://symfony.com/doc/current/cookbook/security/csrf_in_login_form.html
# Reference: http://symfony.com/doc/current/security/csrf_in_login_form.html
csrf_token_generator: security.csrf.token_manager
# The page users are redirect to when there is no previous page stored in the
# session (for example when the users access directly to the login page).
Expand Down