Fix getting logged out between restarts if 2FA is enabled

This commit is contained in:
Nutcake 2023-05-29 16:15:33 +02:00
parent d9de622995
commit 47457480ff

View file

@ -86,7 +86,7 @@ class ApiClient {
final response = await http.patch(buildFullUri("/userSessions"), headers: {
"Authorization": "neos $userId:$token"
});
if (response.statusCode == 200) {
if (response.statusCode < 300) {
return AuthenticationData(userId: userId, token: token, secretMachineId: machineId, isAuthenticated: true);
}
}