Validation process

Hi - we’ve introduced a validation process using the require_validation option in config.inc.php…however it also sends the registration email at the same time which isn’t ideal. Is there a way to hold this until the email address has been validated??

Hi @BeckettResearch,

What software are you using, and what version?

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry…OJS 2.4.6.0

Thanks

Hi @BeckettResearch,

To have the registration email sent only when the account is activated, you’d need to move the relevant code from classes/user/form/RegistrationForm.inc.php in the execute function (look for the USER_REGISTER email template) into the activateUser function in pages/user/RegistrationHandler.inc.php. Note that you won’t be able to include the password in the email if you make this change – it’s not available unencrypted after the initial creation of the user account.

Regards,
Alec Smecher
Public Knowledge Project Team