fix: 登録時のフォームにおいて送信できる条件を修正 (#10238)
* fix: 登録時のフォームにおいて送信できる条件を修正 * テストを追加
This commit is contained in:
parent
60c1af674f
commit
6feead5185
2 changed files with 16 additions and 1 deletions
|
@ -117,7 +117,9 @@ const shouldDisableSubmitting = $computed((): boolean => {
|
|||
instance.enableHcaptcha && !hCaptchaResponse ||
|
||||
instance.enableRecaptcha && !reCaptchaResponse ||
|
||||
instance.enableTurnstile && !turnstileResponse ||
|
||||
passwordRetypeState === 'not-match';
|
||||
instance.emailRequiredForSignup && emailState !== 'ok' ||
|
||||
usernameState !== 'ok' ||
|
||||
passwordRetypeState !== 'match';
|
||||
});
|
||||
|
||||
function onChangeUsername(): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue