Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QOLDEV-455 fix recaptcha failure message on CKAN 2.10 #136

Merged
merged 5 commits into from
Aug 9, 2023

Conversation

ThrawnCA
Copy link
Contributor

@ThrawnCA ThrawnCA commented Aug 8, 2023

  • Inject reCAPTCHA failure message into CKAN 2.10 routing
  • Add scenario test

- Don't double up on scenario tests
- Drop obsolete test data creation
- Enable running specific scenario tests locally
- Login routes are different from CKAN 2.9
def _gettext_wrapper(key):
translation = original_gettext(key)
if key == 'Login failed. Bad username or password.':
translation = translation.replace('or password.', 'or password or reCAPTCHA.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. I thought I'd tested it locally on CKAN 2.9 and it didn't work without keeping that intercept, but I must have been doing something wrong that time, because yes, it works. Okay, taking that out.

- Intercepting the message rendering covers all versions
@ThrawnCA ThrawnCA merged commit 000caa1 into develop Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants