mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
autoLogin and trustThisDevice are two different things
This commit is contained in:
@@ -85,7 +85,7 @@ class LoginRequest {
|
||||
String? password;
|
||||
String? id;
|
||||
String? uuid;
|
||||
bool? trustThisDevice;
|
||||
bool? autoLogin;
|
||||
String? type;
|
||||
String? verificationCode;
|
||||
Map<String, dynamic> deviceInfo = DeviceInfo.toJson();
|
||||
@@ -95,7 +95,7 @@ class LoginRequest {
|
||||
this.password,
|
||||
this.id,
|
||||
this.uuid,
|
||||
this.trustThisDevice,
|
||||
this.autoLogin,
|
||||
this.type,
|
||||
this.verificationCode});
|
||||
|
||||
@@ -105,7 +105,7 @@ class LoginRequest {
|
||||
if (password != null) data['password'] = password;
|
||||
if (id != null) data['id'] = id;
|
||||
if (uuid != null) data['uuid'] = uuid;
|
||||
if (trustThisDevice != null) data['trustThisDevice'] = trustThisDevice;
|
||||
if (autoLogin != null) data['autoLogin'] = autoLogin;
|
||||
if (type != null) data['type'] = type;
|
||||
if (verificationCode != null) {
|
||||
data['verificationCode'] = verificationCode;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user