Use web crypto when generating password for link shares
whenever the password policy app is disabled.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Remove the share entry in question
when unsharing a folder
from within the `others with access` section
of a file within that folder.
Using the code from the ShareList view here as well.
Just copying the code here as this is a bugfix
that will need to be backported.
Signed-off-by: Max <max@nextcloud.com>
Fixed visibility of the expiration date field for internal shares by
aligning the logic with the one from the public link shares.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Replace vue2-datepicker with native date picker for expiration date.
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Since a recent change to NcActions it's not possible to add a "ref"
attribute on a NcAction* component.
As a workaround, a ref was added on the NcActions parent component
instead.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
- Fix tests
- Use non deprecated event stuff
- Add a bit of type hinting to the new stuff
- More safe handling of instanceOfStorage (share might not be the first
wrapper)
- Fix resharing
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Added aria-label for the buttons on the share panel.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Various improvements related to the recent implementation of temporary passwords
for mail shares:
1- Changes style of "forgot password?" and "Back" button
2- Adds information about share password's expiration time in the emails sent.
3- Shows password expiration time in the Share menu
4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords)
5- At share's creation, password should only be sent when it's a permanent one
See also https://github.com/nextcloud/server/issues/31952
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
The `SHARE` permissions falls into the `default` case in the switch case, causing the rendering to look like ` , Upload, Read`.
This PR changes the return value of the `default` case and adds a `filter` to remove those values.
Signed-off-by: Louis Chemineau <louis@chmn.me>
Adds a "Request password" button to the public share authentication page for shares
of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing
non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves.
- Creates a migration step for the files_sharing app to add the 'password_expiration_time'
attribute to the oc_shares table.
- Makes share temporary passwords' expiration time configurable via a system value.
- Adds a system config value to allow permanent share passwords
-Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue
See https://github.com/nextcloud/server/issues/31005
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>