summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>