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

Commita84acd8

Browse files
committed
[symfony#3307] Adding an additional note about deserialization issues
(cherry picked from commit7325ec5)
1 parent45612ad commita84acd8

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
@@ -420,6 +420,13 @@ For this example, the first three methods will return ``true`` whereas the
420420
Now,if you try to authenticate as a user who's ``is_active`` database field
421421
is set to 0, you won't be allowed.
422422
423+
.. note::
424+
425+
When using the``AdvancedUserInterface``, you should also add any of
426+
the properties used by these methods (like``isActive``) to the``serialize``
427+
method. If you*don't* do this, your user may not be deserialized correctly
428+
from the session on each request.
429+
423430
The next session will focus on how to write a custom entity provider
424431
to authenticate a user with their username or email address.
425432

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp