Search for duplicate email address at sign up time
Posted: 2013-06-05 21:10
I have encountered an issue where two members used the same email address. It was a common one for both of them. But they both needed their own account.
The problem occurred when one requested to reset their password. They used the email address. The system sent the email out but it presented an issue when the link was clicked it returned an error.
"Invalid username or password. No matching user associated with that email address."
I have resolved this by coding to check to see if the email address is a duplicate, the same way the user name is checked to insure it is not a duplicate. If it is a duplicate email address the person attempting to sign up is advised the email address is already in use. They are told to use another email address. They can then contact the administrator to have it checked etc.
This may be something to put in a future version. Email address duplication checking.
I have also added coding to check the ip address they are making the request from for a password change. Since I record all ip addresses of anyone who signs in it checks this in a table to see if it matches the same geographic region of previous login's by this person making the request. (The program looks up and adds to the table the geographic region they are accessing from.)
If it does not match the same geographic region they are sent a message to state they will be personally contacted by the admin to verify due to inconsistencies in their request. A bit paranoid but it is what the client wanted as he could not see any reason for anyone outside the 'home base area' to be asking for a reset request.
Alan
The problem occurred when one requested to reset their password. They used the email address. The system sent the email out but it presented an issue when the link was clicked it returned an error.
"Invalid username or password. No matching user associated with that email address."
I have resolved this by coding to check to see if the email address is a duplicate, the same way the user name is checked to insure it is not a duplicate. If it is a duplicate email address the person attempting to sign up is advised the email address is already in use. They are told to use another email address. They can then contact the administrator to have it checked etc.
This may be something to put in a future version. Email address duplication checking.
I have also added coding to check the ip address they are making the request from for a password change. Since I record all ip addresses of anyone who signs in it checks this in a table to see if it matches the same geographic region of previous login's by this person making the request. (The program looks up and adds to the table the geographic region they are accessing from.)
If it does not match the same geographic region they are sent a message to state they will be personally contacted by the admin to verify due to inconsistencies in their request. A bit paranoid but it is what the client wanted as he could not see any reason for anyone outside the 'home base area' to be asking for a reset request.
Alan