Closed jummy0 closed 9 years ago
One of the fundamental rules of DB development is that each value in the key column must be unique. In this case, the key for each row in the user table is the user's email. SQL with naturally give errors if you attempt a non-unique email.
Usernames, on the other hand, can be unique, which creates some issues with being able to identify other members.
Passwords can obviously be unique.
Made a patch on the registration branch.
During registration, it is never checked whether or not the username or email is already in use; register.php blindly creates a new record for the new user.