We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff77ddd commit 147b131Copy full SHA for 147b131
backend/api/init/init_request.py
@@ -20,7 +20,7 @@
20
21
@functools.cache
22
def is_login_background_enabled() -> bool:
23
- img_path = f"/mnt/{nebula.config.site_name}_01/.nx/login_background.jpg"
+ img_path = f"/mnt/{nebula.config.site_name}_01/.nx/login-background.jpg"
24
return os.path.isfile(img_path)
25
26
@@ -46,8 +46,9 @@ class InitResponseModel(ResponseModel):
46
Field(
47
title="Background",
48
description="Is the login background image enabled?",
49
+ default_factory=is_login_background_enabled,
50
),
- ] = True
51
+ ]
52
53
user: Annotated[
54
UserModel | None,
0 commit comments