Commit 1ea05b90 authored by Linus Lewandowski's avatar Linus Lewandowski

Fix POST /clients/.

parent 87672409
Pipeline #13933333 passed with stages
in 4 minutes 52 seconds
......@@ -20,8 +20,8 @@ class ClientManager(models.Manager):
if owner:
c.oauth_app.owner_id = owner.pk
if owner.oauth_app:
c.oauth_app.trusted_scopes = owner.oauth_app.trusted_scopes & getattr(c.oauth_app, 'new_trusted_scope', set())
if owner.oauth_app:
c.oauth_app.trusted_scopes = owner.oauth_app.trusted_scopes & getattr(c.oauth_app, 'new_trusted_scope', set())
if c.oauth_auth_method.startswith('client_secret_'):
c.client_secret = get_random_string(32)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment