7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-26 08:52:34 +00:00

Fix login from localhost

Login from localhost/studio.localhost was broken on Ironwood because the
session cookie was configured to be stored under the production domain
name. We fix this by setting the SESSION_COOKIE_DOMAIN to None: in the
edx-platform code, this corresponds to using the current request domain.
This commit is contained in:
Régis Behmo 2019-03-27 08:14:42 -07:00
parent 7c0f3f2d76
commit e2b0f3bfde
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## v3.3.3 (2019-03-27)
- [Bugfix] Fix login from localhost
## v3.3.2 (2019-03-27)
- [Bugfix] Fix Android app image build

View File

@ -33,7 +33,7 @@
"EMAIL_PORT": {{ SMTP_PORT }},
"HTTPS": "{{ "on" if ACTIVATE_HTTPS else "off" }}",
"LANGUAGE_CODE": "{{ LANGUAGE_CODE }}",
"SESSION_COOKIE_DOMAIN": ".{{ lms_cms_common_domain }}",
{% if ACTIVATE_HTTPS %}"SESSION_COOKIE_DOMAIN": ".{{ lms_cms_common_domain }}",{% endif %}
"CACHES": {
"default": {
"KEY_PREFIX": "default",

View File

@ -44,7 +44,6 @@
{% endif %}
"LANGUAGE_CODE": "{{ LANGUAGE_CODE }}",
"LOGIN_REDIRECT_WHITELIST": ["{{ CMS_HOST }}", "studio.localhost"],
"SESSION_COOKIE_DOMAIN": ".{{ lms_cms_common_domain }}",
"CACHES": {
"default": {
"KEY_PREFIX": "default",