mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-29 11:09:27 -05:00
Update oauth.py
This commit is contained in:
parent
6f3f8c89d9
commit
ca8c361b26
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user