Skip to content

Commit c382b39

Browse files
authored
Update login_link.rst
1 parent ffa1c21 commit c382b39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

security/login_link.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,10 @@ The properties are fetched from the user object using the
468468
invalidating logic to your login links. For instance, if you store a
469469
``$lastLinkRequestedAt`` property on your users that you update in the
470470
``requestLoginLink()`` controller, you can invalidate all login links
471-
whenever a user requests a new link.
471+
whenever a user requests a new link. If you use DateTimeInterface
472+
objects, make sure to add ``lastLinkRequestedAt.timestamp`` to the
473+
signature properties, so it does not fail on different instances of
474+
the object.
472475

473476
Configure a Maximum Use of a Link
474477
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)