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 authored and regisb committed Aug 28, 2023
1 parent c905665 commit 5a0bd7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/20230815_205312_tmisilo_fix_issue_139.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Add `INFO_EMAIL` and `PASSWORD_RESET_SUPPORT_LINK` missing variables defaults of `CONTACT_EMAIL` and `mailto:{{ CONTACT_EMAIL }}` respectfully. These two variables help build the Forgot Password screen. (by @misilot) -->
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 5a0bd7c

Please sign in to comment.