override authentication email_validate.php

Permalink
Hi,

I am trying to override the email_validated.php in concrete/authentication/concrete/ so that i can add a different link in the continue button (right now it goes to homepage)

so what i did is i created this path in the application/authentication/concrete/ and placed the custom email_validated.php in this folder but when i do a test registration it is still leading me to the unchanged email_validated.php

Do i need to do anything else? as far as i can tell from thishttp://documentation.concrete5.org/tutorials/override-almost-any-co...
this adjustment should be working

xb385
 
mnakalay replied on at Permalink Reply
mnakalay
actually it's a little more complicated. You have to override the concrete authentication controller to call your modified email_validated file instead of the original one. Give it a different name for example email_validated_custom.php.

In the controller's override, only keep the functions you need so as not to override everything.

You will need the function v() that you should modify.
You will need to create your own email_validated_custom() function that's copied on the original.
Finally, you will have to add your function's name "email_validated_custom" to the array $apiMethods which is a list of authorized functions. The array is at the top of the controller. You should probably remove the original email_validated from it.

That should do the trick