From 37ae0097a8c8412915749a8cdae1c484a58ab116 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Tue, 21 Apr 2020 12:25:21 +0300 Subject: [PATCH] fix verify account service --- lib/widgets/auth/verfiy_account.dart | 3 +-- lib/widgets/auth/verification_methods.dart | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/auth/verfiy_account.dart b/lib/widgets/auth/verfiy_account.dart index e4e4d787..bf050556 100644 --- a/lib/widgets/auth/verfiy_account.dart +++ b/lib/widgets/auth/verfiy_account.dart @@ -257,7 +257,7 @@ class _VerifyAccountState extends State { Map model = { "activationCode": activationCode, "DoctorID": _loggedUser['DoctorID'], - // "LogInTokenID": _loggedUser['LogInTokenID'], + "LogInTokenID": _loggedUser['LogInTokenID'], "ProjectID": 15, "LanguageID": 2, "stamp": "2020-02-26T14:48:27.221Z", @@ -270,7 +270,6 @@ class _VerifyAccountState extends State { "IsSilentLogIN": false }; changeLoadingStata(true); - Navigator.of(context).pushNamed(HOME); authProv.memberCheckActivationCodeNew(model).then((res) { changeLoadingStata(false); diff --git a/lib/widgets/auth/verification_methods.dart b/lib/widgets/auth/verification_methods.dart index 1bb85c30..53c671e4 100644 --- a/lib/widgets/auth/verification_methods.dart +++ b/lib/widgets/auth/verification_methods.dart @@ -197,6 +197,7 @@ class _VerificationMethodsState extends State { if (res['MessageStatus'] == 1) { Navigator.of(context).pushNamed(VERIFY_ACCOUNT); } else { + print(res['ErrorEndUserMessage']); helpers.showErrorToast(res['ErrorEndUserMessage']); } // Navigator.of(context).pushNamed(HOME);