Jump to content

Errors after redirect


laurent54

Recommended Posts

Hello,

 

I am trying to display errors to customers after redirection but seems not working as expected :

 

Override of authController to disable account on specific form infos and when account is created redirect to login page with custom message.

 

I have tried this :

$this->errors[] = Tools::displayError('Your account is created but need to be checked before you can use it');
if (($back = Tools::getValue('back')) && $back == Tools::secureReferrer($back))
Tools::redirect(html_entity_decode($back));

Any idea why my errors not displayed ?

 

Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...