Skip to content

feat: SetupAdmin should use backend-configured min_password_length #589

@Aureliolo

Description

@Aureliolo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:lowNice to have, can deferscope:smallLess than 1 day of worktype:featureNew feature implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions