-
Notifications
You must be signed in to change notification settings - Fork 0
feat: SetupAdmin should use backend-configured min_password_length #589
Copy link
Copy link
Closed
Labels
prio:lowNice to have, can deferNice to have, can deferscope:smallLess than 1 day of workLess than 1 day of worktype:featureNew feature implementationNew feature implementation
Description
Summary
The `SetupAdmin.vue` component currently uses the hardcoded `MIN_PASSWORD_LENGTH` constant for validation and helper text. It should read the backend-configured value `api.auth.min_password_length` when available and fall back to the constant only if the server value is unavailable.
Current behavior
Uses static `MIN_PASSWORD_LENGTH` constant from `@/utils/constants`.
Expected behavior
Fetch `api.auth.min_password_length` from the settings API (or via the setup status response) and use it for validation and placeholder text. Falls back to `MIN_PASSWORD_LENGTH` if unavailable.
Context
Found during PR #584 review. Deferred because it needs a new API call to fetch the setting value and the current constant matches the backend default.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
prio:lowNice to have, can deferNice to have, can deferscope:smallLess than 1 day of workLess than 1 day of worktype:featureNew feature implementationNew feature implementation