From ca8c361b26289bfd05ed3b4f57a83fc7d892a72f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:28:17 -0800 Subject: [PATCH] Update oauth.py --- src/paperless_mail/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless_mail/oauth.py b/src/paperless_mail/oauth.py index 6d5144c64..f2050451b 100644 --- a/src/paperless_mail/oauth.py +++ b/src/paperless_mail/oauth.py @@ -115,4 +115,4 @@ class PaperlessMailOAuth2Manager: return False def validate_state(self, state: str) -> bool: - return not settings.DEBUG and len(state) > 0 and state == self.state + return settings.DEBUG or (len(state) > 0 and state == self.state)