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; break;
case HttpType.kAuthResTypeEmailCheck: case HttpType.kAuthResTypeEmailCheck:
setState(() => isInProgress = false); close(true);
final res = await verificationCodeDialog(resp.user); verificationCodeDialog(resp.user);
if (res == true) {
close(true);
return;
}
break; break;
default: default:
passwordMsg = "Failed, bad response from server"; passwordMsg = "Failed, bad response from server";