users with same ip address or same browser cant make two ids , lavalair
Started on the old forum in December 2011 · view the original in the archive · old links redirect here
TL;DR · summary of 30 replies
- Warning: Cannot modify header information - headers already sent is due to output being started before login.php.
- For email validation, registration settings should be set to "Required" and the genVerificationCode function should be called after a successful registration.
- Verify.php will not send an email if the token in the querystring is invalid.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
did you edit the $link variable in verifyUser() with link to your verify page? I have commented properly where you need to modify the code.
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in
yes i had modified the link in verify.php wait m posting my verify.php , by calling the function genverification code i wasnt able to get mail so i used those directly in register.php n was able to get mail n verification link also , same i did with verify.php , calling function verifyuser from core wasnt working in verify.php so i used those codes for verifyuser directly , but when i clicked the link in email i redirects me to index.php , its some problem with cookies i think , when i delete the lines abt cookies in verify.php n click the link to verify it says my account activated , but still m not able to login , while login i get error to click the link
man, what you did in that file? Just put following code in file.
<?php
include("config.php");
include("core.php");
$bcon = connectdb();
if(!$bcon)
{
echo "Cannot Connect To Database";
exit();
}
verifyUser();
?>
Just put html headers and tags before that function and a link to go back to your site at bottom.
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in
In that txt file at this line value 1 needs to be single quoted:
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."' AND verified='1'"));
... and here:
mysql_query("UPDATE ibwf_users SET verified='1' WHERE user='".$u."'"); //set user as verified
amylee wrote: the amount of modifying to the script to properly and securely stop users creating multiple id's per ip/browser is painstakingly time-consuming might as well code a script from scratch as i tried and gave up doing it to my new lavalair script i was coding
i just ended up adding a staff validation system with a improved browser and ip detection, that did the job for me
Well sure its the best when you have the staff to do that. 🙂 But what you think about something like this Ksg91's method, just with that when the user want to change the email address this action must be validated by staff or admin? In the script im working on (guest book service), i cant decide within this way and that, when the user changes his mail the script resets his password and sending the new one to the newly entered email address. What you think?
still the tables not getting updated even after adding single quotes for 1, while registration in verification table user column is blank n even afterclicking link verified column is 0
here is the view of tables after registering it shows user column blank . this is the view bfore clicking link in email. is this the reason y column verified is not updated
SQL query: SELECT * FROM verification LIMIT 0, 30 ;
Rows: 1
id user hash
2 10b625e0780d105fcf805cbb9601c37c
arnage wrote: In that txt file at this line value 1 needs to be single quoted:
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."' AND verified='1'"));... and here:
mysql_query("UPDATE ibwf_users SET verified='1' WHERE user='".$u."'"); //set user as verified
No. For number type field, you don't need to use single quote.
mirror wrote: ibwf_users table not updating column verified to 1 on clicking link in email . as result m not able to login something wrong with this function verifyUser()i n core, in verification table also only user column is blank id n hash column gets updated
because you will not be calling genVerificationCode() with user id as arguement
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in