Skip to content

Commit

Permalink
field added in validate decisions for authn
Browse files Browse the repository at this point in the history
VAN-351
  • Loading branch information
adeelehsan committed Feb 9, 2021
1 parent e9175c2 commit bcfe287
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openedx/core/djangoapps/user_authn/views/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,4 +758,10 @@ def post(self, request):
validation_decisions.update({
form_field_key: handler(self, request)
})

field_name = request.data.get('fieldName') # adding field name for authn MFE use case
if field_name:
validation_decisions.update({
'fieldName': field_name
})
return Response({"validation_decisions": validation_decisions})

0 comments on commit bcfe287

Please sign in to comment.