Add a TPA pipeline step to allow force sync of user details.

The feature is controlled by a switch on the provider.
Emails are sent if the email changes during the sync.
We skip syncing the username/email if there would be a conflict.
This commit is contained in:
Uman Shahzad
2017-11-21 18:31:15 +05:00
parent 139fa895d1
commit ee09c4ccf9
7 changed files with 254 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
<%! from django.utils.translation import ugettext as _ %>
<%! from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers %>
<p>
${_("The email associated with your {platform_name} account has changed from {old_email} to {new_email}.").format(
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME),
old_email=old_email,
new_email=new_email,
)}
</p>
<p>${_("No action is needed on your part.")}</p>
<p>
${_("If this change is not correct, contact {link_start}{platform_name} Support{link_end} "
"or your administrator.").format(
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME),
link_start=u"<a href='{support_link}'>".format(
support_link=configuration_helpers.get_value('SUPPORT_SITE_LINK', settings.SUPPORT_SITE_LINK),
),
link_end=u"</a>",
)
}
</p>

View File

@@ -0,0 +1,6 @@
<%! from django.utils.translation import ugettext as _ %>
<%! from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers %>
${_("Your {platform_name} account email has been updated").format(
platform_name=configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME),
)}