Jump to content

Edit email approval


MikeHolohan

Recommended Posts

Hi Guys, a noob here...

 

I am trying to edit a file to cause the users not to logo until I approve their account but I can't find it in the code...

 

I am assuming this is it but have no idea how to edit it, any help appreciated... Mike.

 

function login($email,$password) {
$sql="select *  from members WHERE password='$password' and email='$email'";
$res = mysql_query($sql) or die ($sql);
$row = mysql_fetch_object($res);
// doesnot  exist ?
if (mysql_num_rows($res)==0) {
	$resultat["ok"]=0;
	$resultat["message"]=$GLOBALS['parameters']->doesNotExistMessage;
	return $resultat;	
}
if ($row->confirmed==0 && $GLOBALS['parameters']->mustConfirmEmail==1) {
	$resultat["ok"]=0;
	$resultat["message"]=$GLOBALS['parameters']->messageMustConfirmEmail;
	return $resultat;	

Link to comment
https://forums.phpfreaks.com/topic/130568-edit-email-approval/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.