From c20ce0e77a85cde74375f5370cd505e66848e509 Mon Sep 17 00:00:00 2001 From: karmab Date: Wed, 8 May 2024 11:10:09 +0200 Subject: [PATCH] ksushy: check both user and password when enabling auth --- kvirt/ksushy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvirt/ksushy/__init__.py b/kvirt/ksushy/__init__.py index fdae1f329..0d653a8fe 100644 --- a/kvirt/ksushy/__init__.py +++ b/kvirt/ksushy/__init__.py @@ -25,7 +25,7 @@ def credentials(user, password): return True elif user is None or password is None: return False - elif user == default_user or password == default_password: + elif user == default_user and password == default_password: return True else: return False