diff --git a/lib/pages/login/confirm-login.dart b/lib/pages/login/confirm-login.dart index 7497856d..76fffc82 100644 --- a/lib/pages/login/confirm-login.dart +++ b/lib/pages/login/confirm-login.dart @@ -616,7 +616,17 @@ class _ConfirmLogin extends State { if (result is Map) { result = CheckActivationCode.fromJson(result), - if (this.registerd_data != null && this.registerd_data.isRegister == true) + if(result.errorCode =='699'){ + //699 block run here + GifLoaderDialogUtils.hideDialog(context), + Future.delayed(Duration(seconds: 2), () { + AppToast.showErrorToast(message: result.errorEndUserMessage); + Navigator.of(context).popAndPushNamed(LOGIN_TYPE); + + }) + } + + else if (this.registerd_data != null && this.registerd_data.isRegister == true) { widget.changePageViewIndex(1), Navigator.popUntil(context, (route) => Utils.route(route, equalsTo: RegisterNew)), @@ -643,6 +653,7 @@ class _ConfirmLogin extends State { // Navigator.of(context).pop(), GifLoaderDialogUtils.hideDialog(context), Future.delayed(Duration(seconds: 1), () { + Navigator.of(context).pop(); AppToast.showErrorToast(message: result); startSMSService(tempType); }),