Check out the LimeSurvey source code on GitHub!

Public Registration Validation Error Message Not coming.

More
4 years 2 months ago #87152 by Nidhi01
$query = "SELECT email FROM {{tokens_$surveyid}}\n"
. "WHERE email = '".sanitize_email(Yii::app()->request->getPost('register_email'))."'";
//$result = dbExecuteAssoc($query) or show_error("Unable to execute this query : \n <br/>".$query."<br />"); //Checked)
$result = dbExecuteAssoc($query) or safe_die ($query."".$connect->ErrorMsg());
if (($result->count()) > 0)
{
$register_errormsg=$clang->gT("The email you used has already been registered.");

Even though above code is lying with the RegisterController.php Error Message is not appearing on the screen

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form