Merge pull request #4874 from dignow/refact/mobile_dismiss_login_before_verification

dismiss login dialog before verification
This commit is contained in:
RustDesk 2023-07-05 16:05:01 +08:00 committed by GitHub
commit bf4854a444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,12 +434,8 @@ Future<bool?> loginDialog() async {
}
break;
case HttpType.kAuthResTypeEmailCheck:
setState(() => isInProgress = false);
final res = await verificationCodeDialog(resp.user);
if (res == true) {
close(true);
return;
}
close(true);
verificationCodeDialog(resp.user);
break;
default:
passwordMsg = "Failed, bad response from server";