mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
fix signup with providers with extra args
This commit is contained in:
parent
b54a948e73
commit
103a4af9d4
@ -260,9 +260,9 @@ class RegistratonMixin:
|
|||||||
"""
|
"""
|
||||||
Mixin to check if registration should be enabled
|
Mixin to check if registration should be enabled
|
||||||
"""
|
"""
|
||||||
def is_open_for_signup(self, request):
|
def is_open_for_signup(self, request, *args, **kwargs):
|
||||||
if settings.EMAIL_HOST and InvenTreeSetting.get_setting('LOGIN_ENABLE_REG', True):
|
if settings.EMAIL_HOST and InvenTreeSetting.get_setting('LOGIN_ENABLE_REG', True):
|
||||||
return super().is_open_for_signup(request)
|
return super().is_open_for_signup(request, *args, **kwargs)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def save_user(self, request, user, form, commit=True):
|
def save_user(self, request, user, form, commit=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user