Skip to content

Commit 73063f0

Browse files
committed
minor #14475 [Security] Update examples of Login Link (fconte)
This PR was squashed before being merged into the 5.2-dev branch. Discussion ---------- [Security] Update examples of Login Link Hi, Update of examples: - Request parameter missing - Recipient object require email or phone to be defined in constructor Commits ------- 464904f [Security] Update examples of Login Link
2 parents 6e0d5a6 + 464904f commit 73063f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/login_link.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ number::
253253
'Welcome to MY WEBSITE!' // email subject
254254
);
255255
// create a recipient for this user
256-
$recipient = (new Recipient())->email($user->getEmail());
256+
$recipient = new Recipient($user->getEmail());
257257

258258
// send the notification to the user
259259
$notifier->send($notification, $recipient);
@@ -620,7 +620,7 @@ user create this POST request (e.g. by clicking a button)::
620620
/**
621621
* @Route("/login_check", name="login_check")
622622
*/
623-
public function check()
623+
public function check(Request $request)
624624
{
625625
// get the login link query parameters
626626
$expires = $request->query->get('expires');

0 commit comments

Comments
 (0)