I'm adding a password field to the registrer page, I've added the field in the template and I can read the password entered by the user using:
Code:
Yii::app()->request->getPost( 'survey_password' );
I'm guessing I can do this in beforeRegister function of my custom plugin
what I can't understand is how do I trigger an error to the register form when the password entered is wrong?
I've tried adding:
Code:
$this->aRegisterErrors[] = gT("You must enter the valid survey password. Please try again.");
But this doesn't work for me.
I'm guessing the question is how do I trigger an error and return to the registration form if the password the user adds is wrong?
using LimeSurvey
Version 4.2.3+200511
Thank you.