femanager icon indicating copy to clipboard operation
femanager copied to clipboard

Confirmation link can be clicked multiple times

Open mhuber84 opened this issue 10 months ago • 5 comments

If the user clicks the link in the confirmation email multiple times, the finishers get executed every time. But they should get executed only once.

A return true; in the if ($user->getTxFemanagerConfirmedbyuser()) in NewController::statusUserConfirmation() helps. Can someony confirm this?

Edit: Removed "but then the userConfirmationRedirect is not executed anymore"

mhuber84 avatar Apr 08 '24 13:04 mhuber84

I can confirm that issue and the return true; workaround. Similar problem in if ($user->getTxFemanagerConfirmedbyadmin()) in NewController::statusAdminConfirmation().

However, I do not find it necessary to redirect to the newAction at this point. The user clicks on the confirmation link several times, so he/she has an account, why show the form?

epxfrho avatar Apr 10 '24 11:04 epxfrho

Can confirm the issue, return true; works. The redirect should be dropped, i don't see the usecase for that either.

akiessling avatar May 24 '24 08:05 akiessling

Are there any news on this issue?

mhuber84 avatar Jun 18 '24 11:06 mhuber84

I ran into this problem, too. A simple return true; is not enough. The redirect response object needs to be returned and used in the actual action.

hannesbochmann avatar Aug 12 '24 12:08 hannesbochmann

The same problem exists for other actions as well. I provided a PR which fixes a redirects.

hannesbochmann avatar Aug 12 '24 12:08 hannesbochmann