Skip to content

fix(files_sharing): Use share password policy for password generation#58221

Open
nfebe wants to merge 2 commits intomasterfrom
fix/share-password-policy-generation
Open

fix(files_sharing): Use share password policy for password generation#58221
nfebe wants to merge 2 commits intomasterfrom
fix/share-password-policy-generation

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Feb 10, 2026

Pass context=sharing when calling the password_policy API to generate passwords that comply with share-specific password policies.

The fallback generator now also respects the sharing policy settings from capabilities (minLength, special characters, etc.) when the API is unavailable.

Fixes: nextcloud/password_policy#870

@nfebe nfebe requested a review from a team as a code owner February 10, 2026 13:14
@nfebe nfebe requested review from sorbaugh, susnux and szaimen and removed request for a team February 10, 2026 13:14
@nfebe nfebe force-pushed the fix/share-password-policy-generation branch 2 times, most recently from ff1e334 to 77608d0 Compare February 10, 2026 13:32
Pass context=sharing when calling the password_policy API to generate
passwords that comply with share-specific password policies.

The fallback generator now also respects the sharing policy settings
from capabilities (minLength, special characters, etc.) when the API
is unavailable.

Fixes: nextcloud/password_policy#870
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe force-pushed the fix/share-password-policy-generation branch from 77608d0 to 0072c5e Compare February 10, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Randomly generated password not complying with external sharing password policy

1 participant