File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 15
15
16
16
use Sonata \AdminBundle \Admin \Pool ;
17
17
use Sonata \AdminBundle \Templating \TemplateRegistryInterface ;
18
- use Symfony \Component \HttpFoundation \RedirectResponse ;
19
- use Symfony \Component \HttpFoundation \Request ;
20
18
use Symfony \Component \HttpFoundation \Response ;
21
- use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
22
19
use Twig \Environment ;
23
20
24
21
final class CheckEmailAction
25
22
{
26
23
public function __construct (
27
24
private Environment $ twig ,
28
- private UrlGeneratorInterface $ urlGenerator ,
29
25
private Pool $ adminPool ,
30
26
private TemplateRegistryInterface $ templateRegistry ,
31
27
private int $ tokenTtl
32
28
) {
33
29
}
34
30
35
- public function __invoke (Request $ request ): Response
31
+ public function __invoke (): Response
36
32
{
37
- $ username = $ request ->query ->get ('username ' );
38
-
39
- if (null === $ username ) {
40
- // the user does not come from the sendEmail action
41
- return new RedirectResponse ($ this ->urlGenerator ->generate ('sonata_user_admin_resetting_request ' ));
42
- }
43
-
44
33
return new Response ($ this ->twig ->render ('@SonataUser/Admin/Security/Resetting/checkEmail.html.twig ' , [
45
34
'base_template ' => $ this ->templateRegistry ->getTemplate ('layout ' ),
46
35
'admin_pool ' => $ this ->adminPool ,
You can’t perform that action at this time.
0 commit comments