File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ public function sendPasswordResetEmail(AbstractUser $user): bool
50
50
if ($ email ) {
51
51
$ user ->setPasswordRequestedAt (new \DateTime ());
52
52
$ this ->container ->get ('doctrine.orm.entity_manager ' )->flush ();
53
+ } else {
54
+ $ user ->setPasswordRequestedAt (null );
53
55
}
54
56
55
57
return $ this ->send ($ email );
@@ -62,6 +64,8 @@ public function sendChangeEmailConfirmationEmail(AbstractUser $user): bool
62
64
if ($ email ) {
63
65
$ user ->setNewEmailAddressChangeRequestedAt (new \DateTime ());
64
66
$ this ->container ->get ('doctrine.orm.entity_manager ' )->flush ();
67
+ } else {
68
+ $ user ->setNewEmailAddressChangeRequestedAt (null );
65
69
}
66
70
67
71
return $ this ->send ($ email );
@@ -74,6 +78,8 @@ public function sendEmailVerifyEmail(AbstractUser $user): bool
74
78
if ($ email ) {
75
79
$ user ->setEmailAddressVerificationRequestedAt (new \DateTime ());
76
80
$ this ->container ->get ('doctrine.orm.entity_manager ' )->flush ();
81
+ } else {
82
+ $ user ->setEmailAddressVerificationRequestedAt (null );
77
83
}
78
84
79
85
return $ this ->send ($ email );
You can’t perform that action at this time.
0 commit comments