Skip to content

Commit 28ca5c5

Browse files
committed
Tweaks
1 parent 5a37aa1 commit 28ca5c5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/packages/security.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ security:
4444
# session (for example when the users access directly to the login page).
4545
default_target_path: blog_index
4646

47-
# Reference: https://symfony.com/doc/current/security/remember_me.html
47+
# This option allows users to choose to stay logged in for longer than
48+
# the session lasts using a cookie. Reference: https://symfony.com/doc/current/security/remember_me.html
4849
remember_me:
4950
secret: '%kernel.secret%' # required
5051
lifetime: 604800 # 1 week in seconds
51-
# by default, the feature is enabled by checking a
52-
# checkbox in the login form (see below), uncomment the
53-
# following line to always enable it.
52+
# by default, the feature is enabled by checking a checkbox in the
53+
# login form , uncomment the following line to always enable it.
5454
#always_remember_me: true
5555

5656
logout:

src/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function postShow(Post $post): Response
9797
* See https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html#doctrine-converter
9898
*/
9999
#[Route('/comment/{postSlug}/new', methods: ['POST'], name: 'comment_new')]
100-
#[IsGranted('IS_AUTHENTICATED_FULLY')]
100+
#[IsGranted('IS_AUTHENTICATED')]
101101
#[ParamConverter('post', options: ['mapping' => ['postSlug' => 'slug']])]
102102
public function commentNew(Request $request, Post $post, EventDispatcherInterface $eventDispatcher, EntityManagerInterface $entityManager): Response
103103
{

0 commit comments

Comments
 (0)