mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 04:25:42 +00:00
check if mail is enabled
This commit is contained in:
@ -257,7 +257,7 @@ 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):
|
||||||
if InvenTreeSetting.get_setting('LOGIN_ENABLE_REG', True):
|
if InvenTreeSetting.get_setting('EMAIL_HOST', None) and InvenTreeSetting.get_setting('LOGIN_ENABLE_REG', True):
|
||||||
return super().is_open_for_signup(request)
|
return super().is_open_for_signup(request)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user