diff options
-rw-r--r-- | src/api/core/accounts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 71609b37..e715d8bd 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -1231,8 +1231,8 @@ async fn get_auth_request_response( }; if auth_request.device_type != client_headers.device_type - && auth_request.request_ip != client_headers.ip.ip.to_string() - && !auth_request.check_access_code(code) + || auth_request.request_ip != client_headers.ip.ip.to_string() + || !auth_request.check_access_code(code) { err!("AuthRequest doesn't exist", "Invalid device, IP or code") } |