Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-10 19:36:23 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-20 17:33:26 +0300
commitd8dcd72118f7f5f83874e3a54a7fbc02bda10ce6 (patch)
tree7da5dbe03601c1c52398b4a32460e5aad0dadf11 /apps/sharebymail/js/settings-admin.js
parent140580f9d8468b8450f31dca997916a07693277f (diff)
allow admin to enforce password on mail shares
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/sharebymail/js/settings-admin.js')
-rw-r--r--apps/sharebymail/js/settings-admin.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/sharebymail/js/settings-admin.js b/apps/sharebymail/js/settings-admin.js
index 7b431233032..35a0e9855ac 100644
--- a/apps/sharebymail/js/settings-admin.js
+++ b/apps/sharebymail/js/settings-admin.js
@@ -24,7 +24,15 @@ $(function() {
if ($(this).is(':checked')) {
status = 'yes';
}
- OC.AppConfig.setValue('sharebymail', 'sendpasswordmail', status);
+ OCP.AppConfig.setValue('sharebymail', 'sendpasswordmail', status);
+ });
+
+ $('#enforcePasswordProtection').on('change', function() {
+ var status = 'no';
+ if ($(this).is(':checked')) {
+ status = 'yes';
+ }
+ OCP.AppConfig.setValue('sharebymail', 'enforcePasswordProtection', status);
});
});