-
Notifications
You must be signed in to change notification settings - Fork 556
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
[IAMRISK-3554] hcaptcha bug fix #2566
[IAMRISK-3554] hcaptcha bug fix #2566
Conversation
@@ -302,7 +302,7 @@ export class ThirdPartyCaptcha extends React.Component { | |||
: `auth0-lock-${providerDomPrefix(this.props.provider)}-block auth0-lock-${providerDomPrefix(this.props.provider)}-block-error` | |||
} | |||
> | |||
<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} /> |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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 👍
**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
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
Checklist