summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-04-14 14:06:25 +0200
committerVincent Petry <vincent@nextcloud.com>2022-04-14 14:13:47 +0200
commit82f1344d334431877cf84fc00b76563a48f01c5a (patch)
treec5ae99eb46a1b62828ddb93a909bbb86d7a5bc0c /apps/sharebymail/lib
parente827e0a14061a08eb6009e3fa222c2e66a4ffaf6 (diff)
downloadnextcloud-server-82f1344d334431877cf84fc00b76563a48f01c5a.tar.gz
nextcloud-server-82f1344d334431877cf84fc00b76563a48f01c5a.zip
Adjust settings for mail link password
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>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 70af8d0c746..1aa2307a27d 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -198,7 +198,7 @@ class ShareByMailProvider implements IShareProvider {
// Sends share password to receiver when it's a permanent one (otherwise she will have to request it via the showShare UI)
// or to owner when the password shall be given during a Talk session
- if ($this->config->getSystemValue('allow_mail_share_permanent_password', true) || $share->getSendPasswordByTalk()) {
+ if ($this->config->getSystemValue('sharing.enable_mail_link_password_expiration', false) === true || $share->getSendPasswordByTalk()) {
$send = $this->sendPassword($share, $password);
if ($passwordEnforced && $send === false) {
$this->sendPasswordToOwner($share, $password);