Fix getting logged out between restarts if 2FA is enabled
This commit is contained in:
parent
d9de622995
commit
47457480ff
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class ApiClient {
|
||||||
final response = await http.patch(buildFullUri("/userSessions"), headers: {
|
final response = await http.patch(buildFullUri("/userSessions"), headers: {
|
||||||
"Authorization": "neos $userId:$token"
|
"Authorization": "neos $userId:$token"
|
||||||
});
|
});
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode < 300) {
|
||||||
return AuthenticationData(userId: userId, token: token, secretMachineId: machineId, isAuthenticated: true);
|
return AuthenticationData(userId: userId, token: token, secretMachineId: machineId, isAuthenticated: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue