Auto Merge
This commit is contained in:
commit
95c9a5d7ee
|
@ -80,7 +80,7 @@ def register(data):
|
|||
raise BadRequest("Missing required parameters")
|
||||
allowed_keys = User().serialize().keys()
|
||||
values = {key: value for key, value in data.items() if key in allowed_keys}
|
||||
roles = values.pop("roles", default=[])
|
||||
roles = values.pop("roles", [])
|
||||
user = User(**values)
|
||||
set_roles(user, roles)
|
||||
|
||||
|
|
Loading…
Reference in New Issue