aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-041-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>
* Fix types warnings from psalmCarl Schwan2022-01-121-7/+7
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add check before sending email that email address is validCarl Schwan2022-01-111-0/+10
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Limit more contact searchesJoas Schilling2021-12-081-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-031-5/+14
| | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Expose send_password_by_mail via capabilitiestobiasKaminsky2021-10-201-1/+8
| | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* Add support for Delegation Settings for more appsCarl Schwan2021-10-151-3/+18
| | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Introduce ISecureRandom::CHAR_ALPHANUMERICJ0WI2021-07-081-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-12/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Unify spellingValdnet2021-05-201-2/+2
| | | | | | Spelling unification in Nextcloud applications. Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Fix usage of rename executeUpdateChristoph Wurst2021-05-051-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove some deprecated calls from ShareByMailProvider.phprobottod2021-04-261-14/+14
| | | | | | This moves the execute calls to the executeQuery and executeUpdate calls Resulting in less calls to deprecated functions Signed-off-by: rtod <robottod@protonmail.com>
* Merge pull request #26231 from nextcloud/Valdnet-patch-6John Molakvoæ2021-03-221-2/+2
|\ | | | | l10n: Add words user and because in ShareByMailProvider.php
| * l10n: Add changes to text string for userValdnet2021-03-221-1/+1
| |
| * l10n: Add word user in ShareByMailProvider.phpValdnet2021-03-201-1/+1
| | | | | | Standardizing text strings with other Nextcloud applications.
* | Remove duplicated query for email sharesDaniel Calviño Sánchez2021-03-221-1/+0
| | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* | Sharing link & mail parityJohn Molakvoæ (skjnldsv)2021-03-224-33/+26
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Add labels to mail sharesJohn Molakvoæ (skjnldsv)2021-03-221-2/+7
|/ | | | | | Now the email is shown on a second line if a label is set. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix some redundant castsRoeland Jago Douma2021-03-081-3/+1
| | | | | | Happier psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Sharebymail: set expiration on creationRoeland Jago Douma2021-03-041-2/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove double space so php-cs stops complainingnoiob2021-02-241-1/+1
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Merge pull request #24978 from dems54/issue24139John Molakvoæ2021-02-193-25/+47
|\
| * ReplyTo option for sharebymail - Issue #24139 - Little bug fixNicolas SIMIDE2021-01-281-1/+2
| | | | | | | | Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
| * Update apps/sharebymail/lib/Settings/SettingsManager.phpdems542021-01-281-2/+1
| | | | | | | | | | | | | | Small nitpicks Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
| * Update apps/sharebymail/lib/Settings/SettingsManager.phpdems542021-01-281-1/+1
| | | | | | | | | | | | | | Small nitpicks Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
| * ReplyTo option for sharebymail Issue #24139Nicolas SIMIDE2021-01-283-25/+47
| | | | | | | | Signed-off-by: Nicolas SIMIDE <2083596+dems54@users.noreply.github.com>
* | Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-4/+4
|/ | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>