Commit aa9f6553 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Fix third party creation form kwargs handling

view always passes request argument. Avoid propagating it to ModelForm
parent e4b62917
......@@ -245,6 +245,7 @@ class ThirdPartyUserCreationForm(forms.ModelForm, StoreUserMixin):
self.provider = kwargs.pop('provider', None)
self.request = kwargs.pop('request', None)
if not self.provider or self.provider == 'local':
raise Exception('Invalid provider, %r' % self.provider)
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