fix : number of captchaKey

This commit is contained in:
2025-06-29 09:44:19 +03:30
parent 3fc745737d
commit b2dfaad948
2 changed files with 1 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class CaptchaWidgetLogic extends GetxController with StateMixin<CaptchaResponseM
change(null, status: RxStatus.loading());
textController.value.clear();
await Future.delayed(Duration(milliseconds: 800));
captchaKey.value = (random.nextInt(999999)+100000).toString();
captchaKey.value = (random.nextInt(900000)+100000).toString();
change(value, status: RxStatus.success());
}

View File

@@ -61,7 +61,6 @@ class CaptchaWidget extends GetView<CaptchaWidgetLogic> {
? clearButton(() => controller.textController.value.clear())
: null,
onSubmitted: (data) {},
validator: (value) {
if (value == null || value.isEmpty) {
return 'کد امنیتی را وارد کنید';