Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7325ec5

Browse files
committed
[symfony#3307] Adding an additional note about deserialization issues
1 parent962e204 commit7325ec5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎cookbook/security/entity_provider.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,13 @@ For this example, the first three methods will return ``true`` whereas the
399399
Now,if you try to authenticate as a user who's ``is_active`` database field
400400
is set to 0, you won't be allowed.
401401
402+
.. note::
403+
404+
When using the``AdvancedUserInterface``, you should also add any of
405+
the properties used by these methods (like``isActive``) to the``serialize``
406+
method. If you*don't* do this, your user may not be deserialized correctly
407+
from the session on each request.
408+
402409
The next session will focus on how to write a custom entity provider
403410
to authenticate a user with their username or email address.
404411

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp