Fix bug when creating first time client public.
This commit is contained in:
parent
8bfbc60877
commit
d7b06ee3b4
|
@ -39,7 +39,7 @@ class ClientForm(ModelForm):
|
|||
elif (self.cleaned_data['client_type'] == 'confidential') and instance.client_secret:
|
||||
secret = instance.client_secret
|
||||
else:
|
||||
if (instance.client_type == 'confidential'):
|
||||
if (self.cleaned_data['client_type'] == 'confidential'):
|
||||
secret = md5(uuid4().hex.encode()).hexdigest()
|
||||
|
||||
return secret
|
||||
|
|
Loading…
Reference in a new issue