mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Fix reset password flow
It was broken because of unhappy marshmallow schema and flag name mismatch
This commit is contained in:
@@ -462,7 +462,7 @@ def update_password(user_id):
|
||||
user = get_user_by_id(user_id=user_id)
|
||||
req_json = request.get_json()
|
||||
password = req_json.get('_password')
|
||||
validated_email_access = req_json.get('validated_email_access')
|
||||
validated_email_access = req_json.pop('validated_email_access', False)
|
||||
update_dct, errors = user_update_password_schema_load_json.load(req_json)
|
||||
if errors:
|
||||
raise InvalidRequest(errors, status_code=400)
|
||||
|
||||
Reference in New Issue
Block a user