From 3fbae38a8d425fa73115f3b6ddd165699e522b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Oliver=20S=C3=BCnderhauf?= <46800703+bosue@users.noreply.github.com> Date: Mon, 4 Dec 2023 08:08:08 +0100 Subject: [PATCH] chore: Fix Linter issue with validate_silent_authorization(). (#23577) --- frappe/oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/oauth.py b/frappe/oauth.py index bf7abeb424..119e0d1771 100644 --- a/frappe/oauth.py +++ b/frappe/oauth.py @@ -395,9 +395,9 @@ class OAuthWebRequestValidator(RequestValidator): - OpenIDConnectHybrid """ if request.prompt == "login": - False + return False else: - True + return True def validate_silent_login(self, request): """Ensure session user has authorized silent OpenID login.