Research how to build a form in Mediawiki that would pop up in EmailAuth and send data to Zendesk via the Zendesk API.
On the EmailAuth challenge form, we currently instruct users who have lost access to their email account to email ca@. This will be updated to link to a Zendesk form in T399749. However, we want to go further and embed the form directly onto the EmailAuth challenge page.
When the user clicks the link for getting help with account recovery, we should pop up a dialog that contains a form similar to the Zendesk form (but implemented in a MediaWiki extension). When the user submits this form, we should use the Zendesk API to submit the information the user entered to Zendesk, along with information EmailAuth has gathered internally (the username, whether the user successfully authenticated with a password, and maybe a reqId or IP address or other information that would be helpful for the recovery process).
Open questions:
- Is it OK to rely on JavaScript for this embedded form? If JS is not available, should we just fall back to linking to the Zendesk form?
- In which repo should this embedded form feature live? In EmailAuth, even though it's WMF-specific? In WikimediaMessages? Somewhere else?
- How can we reuse the Zendesk API key setting that is currently specific to the ReportIncident extension?