fix : number of captchaKey
This commit is contained in:
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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 'کد امنیتی را وارد کنید';
|
||||
|
||||
Reference in New Issue
Block a user