think tank forum

ttf development » registering with same email

sriehl's avatar
18 years ago
link
sriehl
surreal
typo bug.

When a new user is registering and the email is already registered, it says "no account was created. perhaps an account already exists with a matching username or password." but the password is emailed to person.
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
that's a pretty serious bug :).
lucas's avatar
18 years ago
link
lucas
i ❤ demo
i can't replicate this. i tried, but it didn't insert the user nor did it e-mail me a password. i don't understand how this is possible, anyway.

check out lines 54-84: http://thinktankforums.googlecode.com/svn/trunk/register.php

it basically goes like this:
sql query (insert user)
if insert not successful, then print error
if insert successful, then mail the login credentials

so it only e-mails the credentials if it successfully inserted the user. can you figure out another way in which you got emailed a password, sd?
sriehl's avatar
18 years ago
link
sriehl
surreal
basically, change the error message to say that the user/email has already been used, not username/password.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
oh haha

yeah. thanks!