mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
check if mail is enabled
This commit is contained in:
parent
a6c6b5c248
commit
f89dd84daf
@ -257,7 +257,7 @@ class RegistratonMixin:
|
||||
Mixin to check if registration should be enabled
|
||||
"""
|
||||
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 False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user