Skip to content

Commit

Permalink
feat(migrate_user): add picture_url to /migreate_usere endpoint, fi…
Browse files Browse the repository at this point in the history
…x request variable
  • Loading branch information
itailevi98 committed Jun 14, 2024
1 parent ce4c947 commit 4445ba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion propelauth_py/api/migrate_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def _migrate_user_from_external_source(
first_name=None,
last_name=None,
username=None,
picture_url=None,
properties=None,
):
url = auth_url + f"{ENDPOINT_PATH}/"
Expand All @@ -28,11 +29,12 @@ def _migrate_user_from_external_source(
"existing_user_id": existing_user_id,
"existing_password_hash": existing_password_hash,
"existing_mfa_base32_encoded_secret": existing_mfa_base32_encoded_secret,
"ask_user_to_update_password_on_login": ask_user_to_update_password_on_login,
"update_password_required": ask_user_to_update_password_on_login,
"enabled": enabled,
"first_name": first_name,
"last_name": last_name,
"username": username,
"picture_url": picture_url,
}
if properties is not None:
json["properties"] = properties
Expand Down

0 comments on commit 4445ba1

Please sign in to comment.