Skip to content

Commit

Permalink
Merge pull request #5 from realifetech/bugfix/fix-v4-prefix-issues-fo…
Browse files Browse the repository at this point in the history
…r-sso

Fix some issues with v4 prefixing with user and sso
  • Loading branch information
ammont committed Dec 2, 2020
2 parents 29e46a4 + f2217ff commit 9a3bf79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions livestyled/resource_client.py
Original file line number Diff line number Diff line change
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 9a3bf79

Please sign in to comment.