mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55: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 | ||||
|     """ | ||||
|     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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user