-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix: update demosite to reflect error messages in client #9867
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
Conversation
const demoElement = document.querySelector("recaptcha-demo"); | ||
demoElement.setAttribute("score", score?.data?.score); | ||
demoElement.setAttribute("verdict", score?.data?.verdict); | ||
demoElement.setAttribute("verdict", score?.data?.label); |
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.
would it be better to rename "verdict" to "label" here and elsewhere?
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.
Yes, was hesitant because I didn't know how Rhy set it up. But I've tried to update the label.
Will ask Rhy for a review.
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.
@morewry Could you PTAL at this change?
…demosite-client-error-msg
response
from backend to includereason
for "bad" actions.