femanager icon indicating copy to clipboard operation
femanager copied to clipboard

Add possibility to redirect on "userAlreadyConfirmed"

Open pulponair opened this issue 4 years ago • 0 comments

Hi there, ATM it i possible to perform a redirect on successful confirmation.

But if the user e.g. click the confirmation link twice one simply get redirected to new action seeing a poor flashmessages "bla bla already confirmed" This is a little ood since, one might want to rediret the user to a login screen in this case as well.

This is the relevant code section from "UserController".

    protected function statusUserConfirmation(User $user, $hash, $status)
    {
        if (HashUtility::validHash($hash, $user)) {
            if ($user->getTxFemanagerConfirmedbyuser()) {
                $this->addFlashMessage(LocalizationUtility::translate('userAlreadyConfirmed'), '', FlashMessage::ERROR);
                $this->redirect('new');
            }

pulponair avatar Jan 20 '21 16:01 pulponair