-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Is your feature request related to a problem? Please describe.
As in many MFA workflows, we wanted to show a masked phone number / email on the front end to indicate to the user which device the code had been sent to.
Describe the solution you'd like
Add a hook method to MFAFirstStepMixin to allow customising the content returned, akin to View.get_context_data
Pass in the default content, along with the response from dispatch_message, and perhaps the source_field to provide extra available details.
Describe alternatives you've considered
Alternatively:
-
mask the
source fieldand pass that in the response -
It appears currently that
dispatch_messagealready returns a value, but it's not used byMFAFirstStepMixin
This could offer a mechanism for a backend to choose what to show.