aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Generate password by password_policy appDaniel Kesselberg2020-08-111-44/+12
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Cleanup share by mail a bitRoeland Jago Douma2020-07-064-78/+39
| | | | | | | | | | | | | | | | * Moved to ned IBootstrap * Register everything via the capabilities api (So clients can use it as well) - This applies to the enforcing passwords * Updated the sharing js code to use it * removed app.php * removed unused settings now * typehints * strict typing Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-11/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix creating a mail share with a passwordDaniel Calviño Sánchez2020-05-281-4/+6
| | | | | | | | | | When a mail share was created with a password the given password was not hashed, so it was not possible to open the share with that password. Moreover, if passwords were enforced the given password was ignored and a new one was set (although in this case it was hashed so it worked as expected). Now the given password is properly hashed and not overriden. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-26/+7
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-262-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* properly set 'hide_download' as integerRobin Appelman2020-03-131-2/+2
| | | | | | | | the database field is a smallint, not a boolean. fixes postgresql tests Signed-off-by: Robin Appelman <robin@icewind.nl>
* Properly respect hide download on sharebymailRoeland Jago Douma2020-03-131-3/+8
| | | | | | fixes #19484 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* additional fix to #18730 #18733exner1042020-01-081-0/+8
| | | regarding to advice from @kesselb
* Wrong email sender fix #18730exner1042020-01-081-3/+1
| | | Wrong email sender in app sharebymail when sending password to owner fix #18730
* Update license headersChristoph Wurst2019-12-057-7/+36
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-226-7/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Get all shares as iterableRoeland Jago Douma2019-10-301-0/+25
| | | | | | | | | | | | Sometimes we need all shares or rather a specific subset of shares but creating dedicated functions is a pain. This just returns an iterable object for all shares so we can loop over them without allocating all the memory on the system. It should not be used by any user called code. But in an occ command or background job it is fine IMO. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change send to sentFrederic Werner2019-06-301-1/+1
| | | | Signed-off-by: Frederic Werner <frederic-github@werner-net.work>
* Fix wrong method callJoas Schilling2019-02-071-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>