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

30 replies · 1,928 views · started 14 years ago · 1 min read

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.

6 participants
mirror Developer · 108 posts #21

still not working m tired,;( ksg9 bro pls edit it fully m not able to make itwork,

m getting mail with token , but when i click the link it goes to index.php , so pls can u make this verify.php bcoz i m not able to correctly call this verifyuser function i think ,

ksg91 Developer · 162 posts #22

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

mirror Developer · 108 posts #23

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

Attachments: verify.txt
ksg91 Developer · 162 posts #24

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

mirror Developer · 108 posts #25

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

arnage Lead · 811 posts #26

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
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
arnage Lead · 811 posts #27

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?

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
mirror Developer · 108 posts #28

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

ksg91 Developer · 162 posts #29

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

mirror Developer · 108 posts #30

still not working anyone help

mirror Developer · 108 posts #31

how to call genVerificationCode() with unique id of user as arguement IN THIS , ANYONE PLS HELP

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close