Sometimes users forget the password and cannot log in to any site. Then they go to the forgotten password reminder and enter the email to recover. However, there are often cases when a person simply forgot what login he registered on this site. Sometimes people have several of them, and sometimes they generally always invent various options.
My idea is to save logins in temporary cookies when unsuccessful attempts to enter the site. Then, if the user goes to the forgotten password reminder and enters his email address, we simply compare what is stored in our cookie, with the real login for this address. And, if it turns out that the user really forgot his login, do not send him a new password, but write directly on the page: “It seems you have entered the wrong login all this time.More likely your name is% USERNAME%. ”