Skip to content
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

feat: Make it possible to customize share link tokens #49317

Merged
merged 12 commits into from
Jan 16, 2025
Merged

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Nov 15, 2024

Summary

  • Set custom share link tokens
  • Add admin switch

Checklist

@Pytal Pytal added this to the Nextcloud 31 milestone Nov 15, 2024
@Pytal Pytal self-assigned this Nov 15, 2024
@Pytal Pytal force-pushed the feat/edit-share-token branch from 948ea93 to 5578770 Compare December 17, 2024 00:04
@Pytal Pytal changed the title feat: Allow editing public share token feat: Make it possible to customize share link tokens Dec 17, 2024
@Pytal Pytal force-pushed the feat/edit-share-token branch from 5578770 to f57a605 Compare December 17, 2024 00:18
@Pytal Pytal marked this pull request as ready for review December 17, 2024 00:24
@Pytal Pytal requested a review from provokateurin as a code owner December 17, 2024 00:24
@Pytal Pytal added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Dec 17, 2024
@Pytal Pytal requested review from nfebe and come-nc December 17, 2024 00:25
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good to me 👍

apps/files_sharing/src/services/TokenService.ts Outdated Show resolved Hide resolved
<NcInputField v-if="config.allowCustomTokens && isPublicShare && !isNewShare"
autocomplete="off"
:label="t('files_sharing', 'Share link token')"
:helper-text="t('files_sharing', 'Set the public share link token to something easy to remember or generate a new token. It is not recommended to use a guessable token for shares which contain sensitive information.')"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nextcloud/designers what do you think about this message? I think we should have something better that doesn't first incentivize using something easy and then reverting that in the second sentence

apps/settings/src/components/AdminSettingsSharingForm.vue Outdated Show resolved Hide resolved
core/templates/layout.public.php Outdated Show resolved Hide resolved
lib/private/Share20/Manager.php Outdated Show resolved Hide resolved
@Pytal Pytal force-pushed the feat/edit-share-token branch from f57a605 to 14bea75 Compare January 4, 2025 00:26
@Pytal Pytal requested a review from provokateurin January 4, 2025 00:26
apps/files_sharing/lib/Controller/ShareAPIController.php Outdated Show resolved Hide resolved
lib/private/Share20/Manager.php Outdated Show resolved Hide resolved
@blizzz blizzz mentioned this pull request Jan 8, 2025
@Pytal Pytal force-pushed the feat/edit-share-token branch from 14bea75 to 6bcbc5a Compare January 9, 2025 22:44
@Pytal Pytal requested a review from provokateurin January 9, 2025 22:48
@Pytal Pytal force-pushed the feat/edit-share-token branch 3 times, most recently from 3801197 to a89f31d Compare January 9, 2025 23:25
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Pytal Pytal requested a review from artonge January 13, 2025 23:48
@skjnldsv skjnldsv mentioned this pull request Jan 14, 2025
@susnux susnux force-pushed the feat/edit-share-token branch from a89f31d to 3210fbd Compare January 15, 2025 11:07
@susnux

This comment was marked as outdated.

@Pytal Pytal force-pushed the feat/edit-share-token branch from 06edc91 to f662bb2 Compare January 15, 2025 22:39
@Pytal

This comment was marked as outdated.

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 15, 2025
@Pytal Pytal force-pushed the feat/edit-share-token branch from 9d14a3c to 42d997b Compare January 15, 2025 23:51
@Pytal
Copy link
Member Author

Pytal commented Jan 15, 2025

/compile

Signed-off-by: nextcloud-command <[email protected]>
@Pytal Pytal merged commit 76ed55a into master Jan 16, 2025
188 checks passed
@Pytal Pytal deleted the feat/edit-share-token branch January 16, 2025 00:25
@skjnldsv skjnldsv mentioned this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: sharing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to specify the token of a public share / share renaming
5 participants