File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Authentication/Actions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function handle(IncomingRequest $request)
7373 }
7474
7575 if (empty ($ email ) || $ email !== $ user ->email ) {
76- return redirect ()->route ('auth-action-show ' )->with ('error ' , lang ('Auth.invalidEmail ' ));
76+ return redirect ()->route ('auth-action-show ' )->with ('error ' , lang ('Auth.invalidEmail ' , [ $ email ] ));
7777 }
7878
7979 $ identity = $ this ->getIdentity ($ user );
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function testEmail2FAHandleInvalidEmail(): void
103103
104104 $ result ->assertRedirect ();
105105 $ this ->assertSame (site_url ('/auth/a/show ' ), $ result ->getRedirectUrl ());
106- $ result ->assertSessionHas ('error ' , lang ('Auth.invalidEmail ' ));
106+ $ result ->assertSessionHas ('error ' , lang ('Auth.invalidEmail ' , [ ' foo@example.com ' ] ));
107107 }
108108
109109 private function insertIdentityEmal2FA (): void
You can’t perform that action at this time.
0 commit comments