femanager
femanager copied to clipboard
Add possibility to redirect on "userAlreadyConfirmed"
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');
}