This topic is locked

Allow duplcate mail adress in registration

1/14/2015 5:50:24 PM
PHPRunner General questions
P
Philip author

I just updated from PHPR 6.2 to 8.

In 6.2 I had modified the source file register.php and eliminated the part where PHPR checks for double entries of email adresses.

Where do I have to modify this in PHPR 8?
Regards,

Philip

Sergey Kornilov admin 1/15/2015

Same register.php file I guess

##if @BUILDER.Registration.bRemindPwdPage##

// check if entered email already exists

if(!strlen($strEmail))

{

$pageObject->jsSettings['tableSettings'][$strTableName]['msg_emailError'] = ##message VALID_EMAIL##;

$allow_registration=false;

}

else

{

$strSQL = "select count(*) from ". $pageObject->connection->addTableWrappers( "##@BUILDER.strLoginTable##" )

." where ".$pageObject->getFieldSQLDecrypt("##@BUILDER.Registration.strUserEmailField s##")."=".$sEmail;



$data = $pageObject->connection->query( $strSQL )->fetchNumeric();

if($data[0] > 0)

{

$pageObject->jsSettings['tableSettings'][$strTableName]['msg_emailError'] = ##message EMAIL_ALREADY1##." <i>".$strEmail."</i> ".##message EMAIL_ALREADY2##;

$allow_registration=false;

}

}

##endif##
P
Philip author 1/15/2015



Same register.php file I guess

##if @BUILDER.Registration.bRemindPwdPage##

// check if entered email already exists

if(!strlen($strEmail))

{

$pageObject->jsSettings['tableSettings'][$strTableName]['msg_emailError'] = ##message VALID_EMAIL##;

$allow_registration=false;

}

else

{

$strSQL = "select count(*) from ". $pageObject->connection->addTableWrappers( "##@BUILDER.strLoginTable##" )

." where ".$pageObject->getFieldSQLDecrypt("##@BUILDER.Registration.strUserEmailField s##")."=".$sEmail;
$data = $pageObject->connection->query( $strSQL )->fetchNumeric();

if($data[0] > 0)

{

$pageObject->jsSettings['tableSettings'][$strTableName]['msg_emailError'] = ##message EMAIL_ALREADY1##." <i>".$strEmail."</i> ".##message EMAIL_ALREADY2##;

$allow_registration=false;

}

}

##endif##



Thank you - I already did that, but this only works when I deselect in Security / Registration and password the function "Remind password page". If this function is selected the above does no longer work.

Is there another part to change?

P
Philip author 1/20/2015

I would realy appreciate to find a solution for this problem. Who can help please?