]> git.ipfire.org Git - dbl.git/commitdiff
auth: Actually check the API keys
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2026 14:34:20 +0000 (14:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2026 14:34:20 +0000 (14:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/auth.py

index a2806b607107ccf4deab8b337f9e3e6083b917c2..75fc1df5c5b95189a4a0add2a275b3dd091250dc 100644 (file)
@@ -76,7 +76,7 @@ class Auth(object):
                # Check all keys
                async for key in keys:
                        # Return True if the key matches the secret
-                       if key.check(secret):
+                       if await key.check(secret):
                                return key
 
                # Log if no API keys could be found