From 4b13d5a28c1f23795a6fe04b0dcc8b9bca88f5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Thu, 17 Feb 2022 17:32:12 +0100 Subject: [PATCH] Fix test --- app/oauth/views/authorize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/oauth/views/authorize.py b/app/oauth/views/authorize.py index 17f7b368..49941836 100644 --- a/app/oauth/views/authorize.py +++ b/app/oauth/views/authorize.py @@ -144,7 +144,7 @@ def authorize(): Scope=Scope, ) else: # POST - user allows or denies - if not current_user.is_authenticated or not current_user.is_enabled: + if not current_user.is_authenticated or not current_user.is_active: LOG.i( "Attempt to validate a OAUth allow request by an unauthenticated user" )