mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-28 18:21:00 +00:00
Fix negated autokey guard logic (#308)
This commit is contained in:
parent
a2f0634cb2
commit
6983763786
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class Settings(BaseSettings):
|
|||
SETUP = Settings()
|
||||
|
||||
# Don't allow automatic keys in production
|
||||
if SETUP.DEBUG and SETUP.SECRET_KEY.startswith("autokey-"):
|
||||
if not SETUP.DEBUG and SETUP.SECRET_KEY.startswith("autokey-"):
|
||||
print("You must set TAKAHE_SECRET_KEY in production")
|
||||
sys.exit(1)
|
||||
SECRET_KEY = SETUP.SECRET_KEY
|
||||
|
|
Loading…
Reference in a new issue