fix: cognito-idp: admin_create_user remove default attributes (#4070)
* 4069: fix: cognito-idp: admin_create_user remove default attributes
This commit is contained in:
parent
eb6515cf50
commit
cb53f86c24
2 changed files with 14 additions and 15 deletions
|
|
@ -658,10 +658,7 @@ class CognitoIdpBackend(BaseBackend):
|
|||
UserStatus["FORCE_CHANGE_PASSWORD"],
|
||||
attributes,
|
||||
)
|
||||
user.attributes.append({"Name": "sub", "Value": user.id})
|
||||
user.attributes.append({"Name": "email_verified", "Value": True})
|
||||
user.attributes.append({"Name": "name", "Value": ""})
|
||||
user.attributes.append({"Name": "family_name", "Value": ""})
|
||||
|
||||
user_pool.users[user.username] = user
|
||||
return user
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue