autoLogin and trustThisDevice are two different things

This commit is contained in:
rustdesk
2023-06-22 22:11:35 +08:00
parent 52f3ab0852
commit ac8fc71b3b
6 changed files with 14 additions and 14 deletions

View File

@@ -416,7 +416,7 @@ Future<bool?> loginDialog() async {
password: password.text,
id: await bind.mainGetMyId(),
uuid: await bind.mainGetUuid(),
trustThisDevice: false,
autoLogin: true,
type: HttpType.kAuthReqTypeAccount));
switch (resp.type) {
@@ -531,7 +531,7 @@ Future<bool?> loginDialog() async {
}
Future<bool?> verificationCodeDialog(UserPayload? user) async {
var trustThisDevice = false;
var autoLogin = true;
var isInProgress = false;
String? errorText;
@@ -564,7 +564,7 @@ Future<bool?> verificationCodeDialog(UserPayload? user) async {
username: user?.name,
id: await bind.mainGetMyId(),
uuid: await bind.mainGetUuid(),
trustThisDevice: trustThisDevice,
autoLogin: autoLogin,
type: HttpType.kAuthReqTypeEmailCode));
switch (resp.type) {