File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed
Customer/Controller/Account
User/Controller/Adminhtml/Auth Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,10 @@ public function execute()
93
93
94
94
$ this ->confirmByToken ->execute ($ resetPasswordToken );
95
95
96
- try {
97
- // Extend token validity to avoid expiration while this form is
98
- // being completed by the user.
99
- $ customer = $ this ->getByToken ->execute ($ resetPasswordToken );
100
- $ this ->accountManagement ->changeResetPasswordLinkToken ($ customer , $ resetPasswordToken );
101
- } catch (\Exception $ exception ) {
102
- // Intentionally ignoring failures here
103
- }
96
+ // Extend token validity to avoid expiration while this form is
97
+ // being completed by the user.
98
+ $ customer = $ this ->getByToken ->execute ($ resetPasswordToken );
99
+ $ this ->accountManagement ->changeResetPasswordLinkToken ($ customer , $ resetPasswordToken );
104
100
105
101
if ($ isDirectLink ) {
106
102
$ this ->session ->setRpToken ($ resetPasswordToken );
Original file line number Diff line number Diff line change @@ -26,15 +26,11 @@ public function execute()
26
26
try {
27
27
$ this ->_validateResetPasswordLinkToken ($ userId , $ passwordResetToken );
28
28
29
- try {
30
- // Extend token validity to avoid expiration while this form is
31
- // being completed by the user.
32
- $ user = $ this ->_userFactory ->create ()->load ($ userId );
33
- $ user ->changeResetPasswordLinkToken ($ passwordResetToken );
34
- $ user ->save ();
35
- } catch (\Exception $ exception ) {
36
- // Intentionally ignoring failures here
37
- }
29
+ // Extend token validity to avoid expiration while this form is
30
+ // being completed by the user.
31
+ $ user = $ this ->_userFactory ->create ()->load ($ userId );
32
+ $ user ->changeResetPasswordLinkToken ($ passwordResetToken );
33
+ $ user ->save ();
38
34
39
35
$ this ->_view ->loadLayout ();
40
36
You can’t perform that action at this time.
0 commit comments