Add 'contact us' line to failed login screen
#1 Updated by Daniel Jones over 7 years ago
Alright so I did this assuming that we only wanted this extra message to come up if someone was coming from the "Account already activated" error screen, but it'd be easy to change it so that it came up for all failed login attempts.
What I did was add a GET variable to the redirect_to URL in the login form on that error page, and tested for it by hooking into the login_errors filter called in wp_login.php. It's a kind of hack-y solution, but the only one I could think of without messing with Wordpress Core. Let me know if I should change it, either to appear on all failed logins (in which case I think we'd have to change the language), or to also appear when someone fails to login from the form on the successful activation page (which I also think would warrant a change in the language).
#2 Updated by Matt Gold over 7 years ago
Thanks for this work, Daniel! If it wouldn't be too much trouble, I would say that it would be great to add the following line to the failed login screen, regardless of where people are coming from:
"If you are unable to log in and have trouble using the "Forgot Password?" link above, please contact the CUNY Academic Commons team at firstname.lastname@example.org for assistance"
#6 Updated by Daniel Jones over 7 years ago
Again, sorry for the delay on this one. Now the message shows up on every failed login attempt, not just ones from the account activation page. Here's the changeset: https://github.com/cuny-academic-commons/cac/commit/a59d1102424dd1c3b60f0304ef45e49a3dc8639f
I made the changes on the 1.8.x branch again - let me know if I should also add them to 1.7.x
#8 Updated by Raymond Hoh over 7 years ago
I've made some minor changes to Daniel's commits and merged them into 1.7.x branch:
Marking this as resolved.