Skip to content

Commit a6ec917

Browse files
committed
refactored templates
- adds method summaries to controller - fixed grammar in check email tpl
1 parent 9e2b9fe commit a6ec917

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function __construct(ResetPasswordHelperInterface $resetPasswordHelper)
3333
}
3434

3535
/**
36+
* Display & process form to request a password reset.
37+
*
3638
* @Route(name="app_forgot_password_request")
3739
*/
3840
public function request(Request $request, MailerInterface $mailer): Response
@@ -53,6 +55,8 @@ public function request(Request $request, MailerInterface $mailer): Response
5355
}
5456

5557
/**
58+
* Confirmation page after a user has requested a password reset.
59+
*
5660
* @Route("/check-email", name="app_check_email")
5761
*/
5862
public function checkEmail(): Response
@@ -68,6 +72,8 @@ public function checkEmail(): Response
6872
}
6973

7074
/**
75+
* Validates and process the reset URL that the user clicked in their email.
76+
*
7177
* @Route("/reset/{token}", name="app_reset_password")
7278
*/
7379
public function reset(Request $request, UserPasswordEncoderInterface $passwordEncoder, string $token = null): Response

src/Resources/skeleton/resetPassword/twig_check_email.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
{% block title %}Password Reset Email Sent{% endblock %}
44

55
{% block body %}
6-
<p>An email has been sent that contains a link you can click to reset your password. This link will expire in {{ tokenLifetime|date('g') }} hour.</p>
6+
<p>An email has been sent that contains a link that you can click to reset your password. This link will expire in {{ tokenLifetime|date('g') }} hour.</p>
77
<p>If you don't receive an email please check your spam folder or <a href="{{ path('app_forgot_password_request') }}">try again</a>.</p>
88
{% endblock %}

0 commit comments

Comments
 (0)