mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
fix login error
This commit is contained in:
@@ -64,7 +64,7 @@ class UserModel {
|
||||
try {
|
||||
return json.decode(userInfo);
|
||||
} catch (e) {
|
||||
debugPrint('Failed to get local user info, json decode "$userInfo": $e');
|
||||
debugPrint('Failed to get local user info "$userInfo": $e');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -133,6 +133,9 @@ class UserModel {
|
||||
if (resp.statusCode != 200) {
|
||||
throw RequestException(resp.statusCode, body['error'] ?? '');
|
||||
}
|
||||
if (body['error'] != null) {
|
||||
throw RequestException(0, body['error']);
|
||||
}
|
||||
|
||||
return getLoginResponseFromAuthBody(body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user