-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
enhance: introduce testCaptcha #14745
base: develop
Are you sure you want to change the base?
Conversation
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -90,6 +90,9 @@
"null"
]
},
+ "enableTestcaptcha": {
+ "type": "boolean"
+ },
"swPublickey": {
"type": [
"string",
@@ -582,6 +585,7 @@
"recaptchaSiteKey",
"enableTurnstile",
"turnstileSiteKey",
+ "enableTestcaptcha",
"swPublickey",
"mascotImageUrl",
"bannerUrl",
@@ -13961,6 +13965,9 @@
"null"
]
},
+ "enableTestcaptcha": {
+ "type": "boolean"
+ },
"sensitiveMediaDetection": {
"type": "string",
"enum": [
@@ -81952,6 +81959,9 @@
"null"
]
},
+ "enableTestcaptcha": {
+ "type": "boolean"
+ },
"swPublickey": {
"type": [
"string",
@@ -82136,6 +82146,7 @@
"recaptchaSiteKey",
"enableTurnstile",
"turnstileSiteKey",
+ "enableTestcaptcha",
"swPublickey",
"mascotImageUrl",
"bannerUrl", |
レビュワーを募集しております |
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.
動作未確認です
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.
このコンポーネントはCaptchaの抽象層だと思うのでTestCaptchaの実装は別コンポーネントにしたいきがするけどいい切り分け単位も思いつかない
@@ -113,6 +119,7 @@ function resetCaptcha() { | |||
mCaptcha.value?.reset(); | |||
reCaptcha.value?.reset(); | |||
turnstile.value?.reset(); | |||
testcaptcha.value?.reset(); |
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.
testcaptcha.value?.reset がundefinedになる可能性あると思うけどここでは?.()になってないのが気になった。
packages/frontend/src/components/MkSignupDialog.form.vue では reset?.()となってる
@@ -29,7 +40,7 @@ export type Captcha = { | |||
getResponse(id: string): string; | |||
}; |
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.
元をたどるとCaptcha.resetメソッドがoptionalと定義されてないのが悪そうかも
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.
vueのexposeのほうのresetを発火しているはずなので、外部から参照されるresetがundefinedになる心配はなさそう
What
Resolve #14740
Why
Additional info (optional)
無理やりsubmitしてもサーバーサイドのtestCaptchaの検証で弾かれてエラーになる
Checklist