Merge branch 'episode_inpatient_changes' into 'development'

fix login issue

See merge request Cloud_Solution/doctor_app_flutter!835
merge-requests/834/merge
Mohammad Aljammal 4 years ago
commit 942bcd1bd3

@ -460,7 +460,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
if (authMethodType == AuthMethodTypes.SMS || if (authMethodType == AuthMethodTypes.SMS ||
authMethodType == AuthMethodTypes.WhatsApp) { authMethodType == AuthMethodTypes.WhatsApp) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
this.startSMSService(authMethodType); this.startSMSService(authMethodType,isSilentLogin: true);
} else { } else {
checkActivationCode(isSilentLogin: true); checkActivationCode(isSilentLogin: true);
} }
@ -503,7 +503,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
} }
} }
startSMSService(AuthMethodTypes type) { startSMSService(AuthMethodTypes type,{isSilentLogin: false}) {
new SMSOTP( new SMSOTP(
context, context,
type, type,
@ -515,7 +515,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
return AppLoaderWidget(); return AppLoaderWidget();
}); });
this.checkActivationCode(value: value,isSilentLogin: false); this.checkActivationCode(value: value,isSilentLogin: isSilentLogin);
}, },
() => () =>
{ {

Loading…
Cancel
Save