Skip to content

Commit

Permalink
Fix some issues with v4 prefixing with user and sso
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Montazer committed Dec 2, 2020
1 parent 29e46a4 commit f2217ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions livestyled/resource_client.py
Expand Up @@ -443,7 +443,7 @@ def create_user(
payload.pop(key)

user_create_response = self._api_post(
UserCreateSchema.Meta.create_url,
'v4/{}'.format(UserCreateSchema.Meta.create_url),
payload
)
return User(**UserSchema().load(user_create_response))
Expand Down Expand Up @@ -472,7 +472,7 @@ def authorise_user(
if not password:
raise ValueError('Need a password to authorise a user')
user_auth_response = self._api_post(
UserSchema.Meta.authorise_url.format(user.id),
'v4/{}'.format(UserSchema.Meta.authorise_url.format(user.id)),
{
'password': password
}
Expand Down

0 comments on commit f2217ff

Please sign in to comment.