Skip to content

Conversation

@Treterten
Copy link
Contributor

@Treterten Treterten commented Jun 14, 2024

Changes

There's an issue with hcaptcha dissapearing and not reloading. There's a related thread here that goes more in depth into the problem. The fix involves resetting the window.hcaptcha variable to force a reload.

References

Ticket

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Checklist

}
>
<div className={`auth0-lock-${providerDomPrefix(this.props.provider) === 'recaptcha' ? 'recaptchav2' : providerDomPrefix(this.props.provider)}`} ref={this.ref} />
<div className={`auth0-lock-${providerDomPrefix(this.props.provider) === 'recaptcha' ? 'recaptchav2' : providerDomPrefix(this.props.provider)}`} id={this.props.provider === HCAPTCHA_PROVIDER ? 'h-captcha' : ''} ref={this.ref} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Really starting to dislike the second ternary operator (starting to get significantly more difficult to follow and reason about). Any considerations for isolating this to a function the same way we did with providerDomPrefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that- I think that will make it easier to follow 👍

@nandan-bhat nandan-bhat merged commit 70c1872 into auth0:master Jun 26, 2024
gyaneshgouraw-okta added a commit that referenced this pull request Nov 12, 2024
**Added**
- [IAMRISK-3539] Use signup classic endpoint for captcha
[\#2587](#2587)
([TSLarson](https://github.com/TSLarson))

**Fixed**
- [IAMRISK-3554] hcaptcha bug fix
[\#2566](#2566)
([Treterten](https://github.com/Treterten))

**Security**
- ci: changed the trigger from pull_request_target to pull_request for
better security [\#2584](#2584)
([nandan-bhat](https://github.com/nandan-bhat))
- Update codeowner file with new GitHub team name
[\#2572](#2572)
([stevenwong-okta](https://github.com/stevenwong-okta))


[IAMRISK-3539]:
https://auth0team.atlassian.net/browse/IAMRISK-3539?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[IAMRISK-3554]:
https://auth0team.atlassian.net/browse/IAMRISK-3554?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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.

3 participants