mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
only test once
This commit is contained in:
parent
9552482471
commit
63977d47ce
@ -172,10 +172,12 @@ class InvenTreeConfig(AppConfig):
|
||||
set_variables += 1
|
||||
|
||||
if set_variables == 0:
|
||||
settings.USER_ADDED = True
|
||||
return
|
||||
|
||||
if set_variables < 3:
|
||||
logger.warn('Not all required settings for adding a user on startup are present:\nINVENTREE_SET_USER, INVENTREE_SET_EMAIL, INVENTREE_SET_PASSWORD')
|
||||
settings.USER_ADDED = True
|
||||
return
|
||||
|
||||
# create user
|
||||
|
Loading…
Reference in New Issue
Block a user