Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty string for username and password in ODL settings. #2245

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow empty strings for username and password in ODL settings.
  • Loading branch information
dbernstein committed Jan 14, 2025
commit a70fc499e10abc4f13cde8f32ae367508f80e328
4 changes: 2 additions & 2 deletions src/palace/manager/api/odl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ class OPDS2WithODLSettings(OPDS2ImporterSettings):
),
)
password: str = FormField(
default=None,
default="",
form=ConfigurationFormItem(
label=_("Library's API password"),
required=False,
),
)
username: str = FormField(
default=None,
default="",
form=ConfigurationFormItem(
label=_("Library's API username"),
required=False,
Expand Down
Loading