Skip to content

Commit

Permalink
fix: hint user in share dialog about password policy (#41314)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 authored Sep 2, 2024
1 parent 2138ce5 commit 6f45e48
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/files_sharing/css/sharetabview.css
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@

.public-link-modal--input[type="password"],
.public-link-modal--input.datepicker {
max-width: 50%;
min-width: 175px;
}

Expand Down
6 changes: 6 additions & 0 deletions changelog/unreleased/41314
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Change: Add user hint in share dialog that password policy can apply

To avoid user confusion the share dialog informs the user that password policy
can apply in case enabled.

https://github.com/owncloud/core/pull/41314
2 changes: 1 addition & 1 deletion core/js/sharedialoglinkshareview.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

var PASSWORD_PLACEHOLDER_STARS = '**********';
var PASSWORD_PLACEHOLDER_MESSAGE = t('core', 'Choose a password');
var PASSWORD_PLACEHOLDER_MESSAGE = t('core', 'Choose a password - password policy may apply');
var TEMPLATE =
'<div class="error-message-global hidden"></div>' +
'<div class="public-link-modal">'+
Expand Down
2 changes: 1 addition & 1 deletion core/js/tests/specs/sharedialoglinkshareviewSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('OC.Share.ShareDialogLinkShareView', function() {
var view;

var PASSWORD_PLACEHOLDER_STARS = '**********';
var PASSWORD_PLACEHOLDER_MESSAGE = 'Choose a password';
var PASSWORD_PLACEHOLDER_MESSAGE = 'Choose a password - password policy may apply';

beforeEach(function() {
configModel = new OC.Share.ShareConfigModel();
Expand Down

0 comments on commit 6f45e48

Please sign in to comment.