File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ public function __construct(
2323 /**
2424 * @throws DecryptionFailedException|Throwable
2525 */
26- public function __invoke (int $ userId , string $ token ): Response |JsonResponse
26+ public function __invoke (int $ userId , string $ resetToken ): Response |JsonResponse
2727 {
2828 $ this ->isActionAuthorized ($ userId , UserDomainObject::class);
2929
3030 try {
3131 $ this ->confirmEmailAddressHandler ->handle (new ConfirmEmailChangeDTO (
32- token: $ token ,
32+ token: $ resetToken ,
3333 accountId: $ this ->getAuthenticatedAccountId (),
3434 ));
3535 } catch (EncryptedPayloadExpiredException ) {
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ public function __construct(ConfirmEmailChangeHandler $confirmEmailChangeHandler
2727 /**
2828 * @throws DecryptionFailedException|Throwable
2929 */
30- public function __invoke (int $ userId , string $ token ): Response |JsonResponse
30+ public function __invoke (int $ userId , string $ changeToken ): Response |JsonResponse
3131 {
3232 $ this ->isActionAuthorized ($ userId , UserDomainObject::class);
3333
3434 try {
3535 $ user = $ this ->confirmEmailChangeHandler ->handle (new ConfirmEmailChangeDTO (
36- token: $ token ,
36+ token: $ changeToken ,
3737 accountId: $ this ->getAuthenticatedAccountId (),
3838 ));
3939 } catch (EncryptedPayloadExpiredException ) {
Original file line number Diff line number Diff line change @@ -165,11 +165,11 @@ function (Router $router): void {
165165 $ router ->get ('/users ' , GetUsersAction::class);
166166 $ router ->get ('/users/{user_id} ' , GetUserAction::class);
167167 $ router ->put ('/users/{user_id} ' , UpdateUserAction::class);
168- $ router ->post ('/users/{user_id}/email-change/{token } ' , ConfirmEmailChangeAction::class);
168+ $ router ->post ('/users/{user_id}/email-change/{changeToken } ' , ConfirmEmailChangeAction::class);
169169 $ router ->post ('/users/{user_id}/invitation ' , ResendInvitationAction::class);
170170 $ router ->delete ('/users/{user_id}/invitation ' , DeleteInvitationAction::class);
171171 $ router ->delete ('/users/{user_id}/email-change ' , CancelEmailChangeAction::class);
172- $ router ->post ('/users/{user_id}/confirm-email/{token } ' , ConfirmEmailAddressAction::class);
172+ $ router ->post ('/users/{user_id}/confirm-email/{resetToken } ' , ConfirmEmailAddressAction::class);
173173 $ router ->post ('/users/{user_id}/resend-email-confirmation ' , ResendEmailConfirmationAction::class);
174174
175175 // Accounts
You can’t perform that action at this time.
0 commit comments