mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Blocked remote access to auth.json
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
import json
|
||||
import hashlib
|
||||
import modules.constants as constants
|
||||
|
||||
from os.path import exists
|
||||
|
||||
@@ -28,7 +29,7 @@ def load_auth_data(filename=None):
|
||||
return auth_dict
|
||||
|
||||
|
||||
auth_dict = load_auth_data('auth.json')
|
||||
auth_dict = load_auth_data(constants.AUTH_FILENAME)
|
||||
|
||||
auth_enabled = auth_dict != None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user