Problem
An Open Social user reported:
"I tried resetting my password by entering my username and got this message:
Reset password
Due to privacy concerns, the policy of this website is not to disclose the existence of registered email addresses. Hence, if you entered a valid email address or username, a password reset link is now being sent to it. If the email address or username you entered does not exist, you will not get a reset link, and will neither get any confirmation or warning about that here. Contact the site administrator if there are any problems.
Is there any way to tell someone that they entered a valid username, without indicating the email address associated with that user?
That would satisfy the privacy piece and would let me know that I entered a valid username."
The message when doing a failed login is unclear to users:
Failed login
There was an error :( This could happen for one of for the following reasons:
- Unrecognized username/email and password combination.
- There has been more than one failed login attempt for this account. It is temporarily blocked.
- Too many failed login attempts from your IP address. This IP address is temporarily blocked.To solve the issue try other credentials, try again later or request a new password
This was feedback from our members. I think the issue here is that our members are mostly very non-technical. Usage of terminology such as credentials, IP and so on are not (or not well) understood. The suggestion is to provide error messages that do not require technical aptitude.
Solution
1. Changes in texts:
Reset password
Due to privacy concerns, the identity of registered email addresses will not be disclosed. Therefore, a password reset link has been sent to you only if you have entered a valid email address or username.
If the email address or username you entered does not exist, you will not get a reset link or a confirmation/warning about that here. Please contact the site administrator if there are any problems.
Failed login
Oops, there was an error. This may have happened for the following reasons:
- Invalid username/email and password combination.
- There has been more than one failed login attempt for this account. It is temporarily blocked.
- Too many failed login attempts from your computer (IP address). This IP address is temporarily blocked.
- To solve the issue, try using different login information, try again later, or request a new password.
2. Refer to the email address in reset password.
Pointing user the site administrator is too vague, users don't know who to contact. Would be nice if the customer can insert a custom email address that is showing in that message.
Comments
Comment #2
ribelHere is PR with proposed changes: https://github.com/goalgorilla/open_social/pull/720
Comment #3
jaapjan commentedThank for the PR. We'll look into it.
Comment #4
jaapjan commentedAlthough it seems like a small change I'm really hesitant about merging this. The reason is that we are exposing the e-mail address of the site in the message. Drupal core never does this. Only for account e-mails etc. (which you only receive when you fill in site contact form, you create account, or password reset which can be turned of on certain sites). So I think this should either be made configurable or we don't show that part.
The new messages are a big improvement already so we can also just improve the message without exposing the site mail.
Comment #5
ronaldtebrake commentedAs mentioned by jaapjan, the update now contains a possibility to exposing the e-mail address of the site instead of doing so by default. This will ensure you don't disclose the site e-mail without wanting to do so.
There is now a new setting on the Basic Site Settings page.
Comment #6
ronaldtebrake commentedWill be in 4.0 thanks.