perf: Use a domain account to avoid automatically creating a local account

This commit is contained in:
halo 2025-03-14 11:28:24 +08:00 committed by Eric_Lee
parent 9667a3d340
commit dd2366532c

View File

@ -179,7 +179,6 @@ class Applet(JMSBaseModel):
if host_matched:
return random.choice(host_matched)
hosts = [h for h in hosts if h.auto_create_accounts]
prefer_key = self.host_prefer_key_tpl.format(user.id)
prefer_host_id = cache.get(prefer_key, None)
pref_host = [host for host in hosts if host.id == prefer_host_id]