aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: Show recipient email addresses in share owner notification emailnfebe2025-01-291-1/+1
| | | | | | | | Previously, the share owner notification email did not display the recipient email addresses, making it difficult for the owner to know who the share was sent to. This fix ensures that the recipient email addresses are included in the notification email. Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix: Ensure `label` is always a stringFerdinand Thiessen2025-01-261-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(shares): Remove noisy text from emailsremoveNoisyTextEmailsGit'Fellow2024-12-161-4/+0
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(share): Don't print twice the same informationprintOnlyOnceTextGit'Fellow2024-12-101-3/+1
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-214-48/+20
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Prevent breaking change in IQueryBuilderFerdinand Thiessen2024-10-171-4/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(AppFramework): Add full support for date / time / datetime columnsFerdinand Thiessen2024-10-171-4/+4
| | | | | | | | | | | | | | | | This adds support for all Doctrine supported types, for the column types only the immutable variants needed to be added. But especially those types are the important ones, as our **Entity** class works by detecting changes through setters. Meaning if it is mutable, changes like `$entity->date->modfiy()` can not be detected, so the immutable types make more sense here. Similar the parameter types needed to be added. `Enity` and `QBMapper` needed to be adjusted so they support (auto map) those types, required when insert or update an entity. Also added more tests, especially to make sure the mapper really serializes the values correctly. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-5/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Fix sharebymail testsfix/fix-email-share-transfer-accross-storagesCôme Chilliet2024-10-081-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(sharebymail): Fix share update when node id changedCôme Chilliet2024-10-071-1/+4
| | | | | | | This fixes transfering an email share from a user to another one when using objectstore as primary storage. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: move to new activity exceptionrefactor/move-to-new-activity-exceptionAnna Larch2024-09-171-2/+3
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(files_sharing): Add missing check for null & use bool instead of int for ↵Stefan Cherniakov2024-09-031-1/+1
| | | | | | reminder_sent field Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
* fix(files_sharing): Make share reminders more stable & fix issuesStefan Cherniakov2024-09-031-1/+3
| | | | Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-8/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Use new password context in sharing APIFerdinand Thiessen2024-08-221-1/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(sharebymail): improve share email formatskjnldsv2024-08-061-16/+37
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-14/+33
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: psalm, cs, autoloader and lintskjnldsv2024-07-121-10/+13
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor share password mailskjnldsv2024-07-121-44/+66
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-121-14/+48
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor mail handlingskjnldsv2024-07-121-13/+32
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): implement IShareProviderWithNotification and refactor ↵skjnldsv2024-07-121-15/+22
| | | | | | sendMailNotification Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): add `new file request` optionskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-026-143/+12
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* refactor: remove non-shallow getSharesInFolderRobin Appelman2024-05-011-6/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* ShareByMailProvider: getAccessList: set correct value for 'public'Adam Serbinski2024-03-211-1/+2
| | | | | | | | PDOStatement::rowCount behavior is undefined for SELECT statements for some database types, therefore manually set the value for 'public' based on actual results fetched. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* ShareByMailProvider: getAccessList: set both array keys 'public' and 'mail'Adam Serbinski2024-03-211-1/+2
| | | | | | | | To preserve prior behaviour where 'public' was set 'true' if there are any mail recipients. The 'mail' key will be an array of email recipients. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* ShareByMailProvider: getAccessList: recommended style changesAdam Serbinski2024-03-211-1/+1
| | | | Signed-off-by: Adam Serbinski <adam@serbinski.com>
* ShareByMailProvider: getAccessList: add token to returned arrayAdam Serbinski2024-03-211-2/+3
| | | | | | This allows the share URI to be regenerated. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* ShareByMailProvider: getAccessList: return full list of recipientsAdam Serbinski2024-03-211-4/+12
| | | | | | | | Previously was returning only boolean true if the Node was shared by email, or false if not. Now provides an array containing the list of email share recipients. Signed-off-by: Adam Serbinski <adam@serbinski.com>
* fix: also filter by storage when getting shares in folderRobin Appelman2024-03-061-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: phpunitJohn Molakvoæ2024-02-131-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* feat(files): add sharing icon in headerJohn Molakvoæ2023-09-021-2/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* sharebymail: remove ILogger and upgrade to PHP 8 syntaxBenjamin Gaussorgues2023-08-301-175/+59
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* sharebymail: Add OpenAPI specjld31032023-07-101-0/+21
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Get rid of all useless calls to setParsedSubject now that setRichSubject is ↵Côme Chilliet2022-11-291-69/+24
| | | | | | able to do it Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Make sure to not pass null to DateTime::createFromFormatCôme Chilliet2022-11-141-3/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use user name cache in activity providersJoas Schilling2022-08-191-21/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-261-4/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix email shares not being shown to other usersRichard Steinmetz2022-06-171-1/+1
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Various improvements related to the recent implementation of temporary passwordsCyrille Bollu2022-06-081-1/+17
| | | | | | | | | | | | | | | 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>
* Port share by mail settings to vueCarl Schwan2022-05-191-12/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Adjust settings for mail link passwordVincent Petry2022-04-141-1/+1
| | | | | | | | | Rename the settings and invert the meaning. Increase default interval to one hour. Changed the interval to be a number of seconds, to align with other setting styles. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Default to permanent link passwordsVincent Petry2022-04-131-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-20/+37
| | | | | | | | | | | | | | | | | | 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>