decydowanie o zyciu cookie
This commit is contained in:
1 parent
5e3146aa6a
commit
153d50f875
2 files changed
+5
-1
No files matched your search
+4
-1
@@ -14,4 +14,7 @@ DEFAULT_ADMIN_PASSWORD=admin123
|
||||
# Katalog wgrywanych plików
|
||||
UPLOAD_FOLDER=uploads
|
||||
|
||||
AUTHORIZED_COOKIE_VALUE=twoj_wlasny_hash
|
||||
AUTHORIZED_COOKIE_VALUE=twoj_wlasny_hash
|
||||
|
||||
# czas zycia cookie
|
||||
AUTH_COOKIE_MAX_AGE=86400
|
||||
@@ -9,3 +9,4 @@ class Config:
|
||||
DEFAULT_ADMIN_PASSWORD = os.environ.get('DEFAULT_ADMIN_PASSWORD', 'admin123')
|
||||
UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER', 'uploads')
|
||||
AUTHORIZED_COOKIE_VALUE = os.environ.get('AUTHORIZED_COOKIE_VALUE', 'cookievalue')
|
||||
AUTH_COOKIE_MAX_AGE = int(os.environ.get('AUTH_COOKIE_MAX_AGE', 86400))
|
||||
Reference in new issue
Block a user