-
Notifications
You must be signed in to change notification settings - Fork 816
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
Fix password generation for shares, improve generator #5717
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5717 +/- ##
==========================================
+ Coverage 60.08% 60.33% +0.24%
==========================================
Files 145 143 -2
Lines 18756 18518 -238
==========================================
- Hits 11270 11172 -98
+ Misses 7486 7346 -140 |
1ca836e
to
ddd9290
Compare
/backport to stable-3.9 |
Tested against 25.0.6 and 26.0.2 and works fine! Fixes #5555 |
SonarCloud Quality Gate failed. |
47485ca
to
5ff50b0
Compare
Signed-off-by: Claudio Cambra <[email protected]>
Signed-off-by: Claudio Cambra <[email protected]>
…es of characters needed to pass server check Signed-off-by: Claudio Cambra <[email protected]>
Signed-off-by: Claudio Cambra <[email protected]>
Signed-off-by: Claudio Cambra <[email protected]>
Signed-off-by: Claudio Cambra <[email protected]>
5ff50b0
to
9df47cf
Compare
SonarCloud Quality Gate failed.
|
AppImage file: nextcloud-PR-5717-9df47cf1ccc1395dff389d3dad7c5612aec853aa-x86_64.AppImage |
@claucambra I just tired it on Windows 11 NC 3.9.1 to send a share via email or share via link and the password did not generate automatically |
This fixes issues where the user cannot create a password for a share as the default generated password we send to the server upon enabling passwords is too weak to be accepted
This uses a combination of OpenSSL's HASH_bytes function to generate a random password. There is also a post-generation check to ensure the password has all types of characters that are required, in the edge case where this is not the case
Closes #5711