Skip to content

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

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

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

Conversation

@nfebe

@nfebe nfebe commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

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 3 times, most recently from 77608d0 to 0072c5e Compare February 10, 2026 13:40
@nfebe
nfebe force-pushed the fix/share-password-policy-generation branch from 0072c5e to cb46856 Compare March 18, 2026 17:17
Comment thread apps/files_sharing/src/utils/GeneratePassword.ts Outdated
Comment thread apps/files_sharing/src/utils/GeneratePassword.ts Outdated
Comment thread apps/files_sharing/src/utils/GeneratePassword.ts Outdated
Comment thread apps/files_sharing/src/utils/GeneratePassword.ts Outdated
@susnux susnux added this to the Nextcloud 35 milestone Jun 9, 2026
This was referenced Aug 12, 2026
@susnux
susnux force-pushed the fix/share-password-policy-generation branch from cb46856 to 0c75b23 Compare August 18, 2026 11:28
@susnux

susnux commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

/backport to stable34

@susnux

susnux commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

/backport to stable33

@susnux

susnux commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

/backport to stable32

@susnux
susnux requested a review from artonge August 18, 2026 13:04
susnux added 2 commits August 18, 2026 15:18
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the fix/share-password-policy-generation branch from 0c75b23 to 7d90ab9 Compare August 18, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

6 participants