|
|
@@ -326,7 +326,9 @@ DEFAULT_FROM_EMAIL = desktop.conf.SMTP.DEFAULT_FROM.get()
|
|
|
# Used for securely creating sessions. Should be unique and not shared with anybody.
|
|
|
SECRET_KEY = desktop.conf.SECRET_KEY.get()
|
|
|
if SECRET_KEY == "":
|
|
|
- logging.warning("secret_key should be configured")
|
|
|
+ logging.warning("secret_key is not configured. all sessions will be lost on restart")
|
|
|
+ import uuid
|
|
|
+ SECRET_KEY = str(uuid.uuid4())
|
|
|
|
|
|
# SAML
|
|
|
SAML_AUTHENTICATION = 'libsaml.backend.SAML2Backend' in AUTHENTICATION_BACKENDS
|