Skip to content

Commit

Permalink
Add INFO_EMAIL and PASSWORD_RESET_SUPPORT_LINK
Browse files Browse the repository at this point in the history
These two variables are used to generate links in the standard MFE Auth
Site Template for resetting passwords.

Fixes #139
  • Loading branch information
misilot committed Aug 10, 2023
1 parent e25fddc commit 237b384
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutormfe/patches/openedx-lms-development-settings
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MFE_CONFIG = {
"CREDENTIALS_BASE_URL": "",
"DISCOVERY_API_BASE_URL": "{% if DISCOVERY_HOST is defined %}http://{{ DISCOVERY_HOST }}:8381{% endif %}",
"FAVICON_URL": "http://{{ LMS_HOST }}/favicon.ico",
"INFO_EMAIL": "{{ CONTACT_EMAIL }}",
"LANGUAGE_PREFERENCE_COOKIE_NAME": "openedx-language-preference",
"LMS_BASE_URL": "http://{{ LMS_HOST }}:8000",
"LOGIN_URL": "http://{{ LMS_HOST }}:8000/login",
Expand All @@ -14,6 +15,7 @@ MFE_CONFIG = {
"LOGO_TRADEMARK_URL": "http://{{ LMS_HOST }}:8000/theming/asset/images/logo.png",
"LOGOUT_URL": "http://{{ LMS_HOST }}:8000/logout",
"MARKETING_SITE_BASE_URL": "http://{{ LMS_HOST }}:8000",
"PASSWORD_RESET_SUPPORT_LINK": "mailto:{{ CONTACT_EMAIL }}",
"REFRESH_ACCESS_TOKEN_ENDPOINT": "http://{{ LMS_HOST }}:8000/login_refresh",
"SITE_NAME": "{{ PLATFORM_NAME }}",
"STUDIO_BASE_URL": "http://{{ CMS_HOST }}:8001",
Expand Down
2 changes: 2 additions & 0 deletions tutormfe/patches/openedx-lms-production-settings
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MFE_CONFIG = {
"CREDENTIALS_BASE_URL": "",
"DISCOVERY_API_BASE_URL": "{% if DISCOVERY_HOST is defined %}{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ DISCOVERY_HOST }}{% endif %}",
"FAVICON_URL": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/favicon.ico",
"INFO_EMAIL": "{{ CONTACT_EMAIL }}",
"LANGUAGE_PREFERENCE_COOKIE_NAME": "openedx-language-preference",
"LMS_BASE_URL": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}",
"LOGIN_URL": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/login",
Expand All @@ -14,6 +15,7 @@ MFE_CONFIG = {
"LOGO_TRADEMARK_URL": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/theming/asset/images/logo.png",
"LOGOUT_URL": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/logout",
"MARKETING_SITE_BASE_URL": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}",
"PASSWORD_RESET_SUPPORT_LINK": "mailto:{{ CONTACT_EMAIL }}",
"REFRESH_ACCESS_TOKEN_ENDPOINT": "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/login_refresh",
"SITE_NAME": "{{ PLATFORM_NAME }}",
"STUDIO_BASE_URL": "{{ "https" if ENABLE_HTTPS else "http" }}://{{ CMS_HOST }}",
Expand Down

0 comments on commit 237b384

Please sign in to comment.