[Snippet] membership_validator
#16
Posted 03 November 2009 - 02:59 PM
#17
Posted 12 March 2010 - 10:12 PM
trying to implement the snippet...
step 1 and 2 are ok ...but when I click on the link in the email adress I'll getting the following:
There is a registration error...this could be because:
1) you have attempted hack the site,
2) you have tried to create another account,
Please register again or contact the webmaster for assistance.
It creates the user in the DB because when I try again - it states that the username and email are already used...
can someone "pinpoint" where I've done wrong?
Edited by Wiper2007, 14 March 2010 - 12:11 AM.
#18
Posted 15 March 2010 - 06:22 AM
#19
Posted 15 March 2010 - 09:53 PM
Hmmm.. I have now completed step 1 and 2 from my home computer sending a mail to my computer at work ...
So I'll try to confirm the email link from my computer at work like a "normal" user that's trying to register...
Cris D., on 15 March 2010 - 06:22 AM, said:
Edited by Wiper2007, 15 March 2010 - 09:56 PM.
#20
Posted 16 March 2010 - 08:18 AM
Wiper2007, on 15 March 2010 - 09:53 PM, said:
Hmmm.. I have now completed step 1 and 2 from my home computer sending a mail to my computer at work ...
So I'll try to confirm the email link from my computer at work like a "normal" user that's trying to register...
#22
Posted 16 March 2010 - 09:37 PM
Wiper2007, on 16 March 2010 - 12:30 PM, said:
still getting the error....
any suggestions ?
$hash=$_GET['hash'];
//stop hacking attempts
if(!preg_match('#^[a-f0-9]{32}$#i', $hash))
return $messages['error1'];
not this:
if(is_numeric($_GET['hash'])){
$hash=$_GET['hash'];
}else{
//someone is trying to inject GET values into the browser
return $messages['error1'];}
which is totaly wrong for an MD5 hash (beig letters and numbers).ie make sure you are gettting the snippet from the "Download File"button, NOT the list of archive files listed below on the downoad page.
#23
Posted 17 March 2010 - 10:20 PM
I've downloaded it by clicking the download button...
I've the:
$hash=$_GET['hash'];
//stop hacking attempts
if(!preg_match('#^[a-f0-9]{32}$#i', $hash))
return $messages['error1'];
in the membership_verifier snippet - and not in the membership_validator... are this correct?
Cris D., on 16 March 2010 - 09:37 PM, said:
$hash=$_GET['hash'];
//stop hacking attempts
if(!preg_match('#^[a-f0-9]{32}$#i', $hash))
return $messages['error1'];
not this:
if(is_numeric($_GET['hash'])){
$hash=$_GET['hash'];
}else{
//someone is trying to inject GET values into the browser
return $messages['error1'];}
which is totaly wrong for an MD5 hash (beig letters and numbers).ie make sure you are gettting the snippet from the "Download File"button, NOT the list of archive files listed below on the downoad page.
#24
Posted 18 March 2010 - 09:49 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










