Merge branch 'develop'

Cookies no seguras cuando no hay HTTPS
This commit is contained in:
Mauricio Baeza 2018-01-30 23:41:05 -06:00
commit dcfc80edc8
2 changed files with 10 additions and 4 deletions

View File

@ -20,7 +20,7 @@ from controllers.main import (AppEmpresas,
)
from settings import DEBUG, MV, PATH_SESSIONS
from settings import DEBUG, MV, NO_HTTPS, PATH_SESSIONS
db = StorageEngine()
@ -68,7 +68,8 @@ session_options = {
'session.data_dir': PATH_SESSIONS['data'],
'session.lock_dir': PATH_SESSIONS['lock'],
}
if DEBUG or MV:
# ~ Si no usas (NO deberías) certificados en tu servidor, ponla siempre en False
if DEBUG or MV or NO_HTTPS:
session_options['session.secure'] = False
app = SessionMiddleware(api, session_options)

View File

@ -12,7 +12,7 @@ from conf import DEBUG, MV, LOG_PATH
try:
from conf import DEFAULT_PASSWORD
except ImportError:
DEFAULT_PASSWORD = 'blades3.3'
DEFAULT_PASSWORD = 'salgueiro3.3'
try:
from conf import SEAFILE_SERVER
@ -24,9 +24,14 @@ try:
except ImportError:
TITLE_APP = 'Empresa Libre'
try:
from conf import NO_HTTPS
except ImportError:
NO_HTTPS = True
DEBUG = DEBUG
VERSION = '1.2.0'
VERSION = '1.5.0'
EMAIL_SUPPORT = ('soporte@empresalibre.net',)
BASE_DIR = os.path.abspath(os.path.dirname(__file__))