Update oauth.py

This commit is contained in:
shamoon 2025-01-07 19:28:17 -08:00
parent 6f3f8c89d9
commit ca8c361b26

View File

@ -115,4 +115,4 @@ class PaperlessMailOAuth2Manager:
return False return False
def validate_state(self, state: str) -> bool: 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)