summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-11 14:18:51 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-01-11 14:18:51 +0100
commit466cdab680d74cad2cbb902efa3e3c2f9e35f767 (patch)
tree3d1b553668b16a57c68721ee325ee734df886906 /settings/js
parent60489764f37a6f344fa20e361a26c7a6006f9c97 (diff)
downloadnextcloud-server-466cdab680d74cad2cbb902efa3e3c2f9e35f767.tar.gz
nextcloud-server-466cdab680d74cad2cbb902efa3e3c2f9e35f767.zip
Add security section to admin menu
Currently it only allows the admin to enable or disable the HTTPS enforcement, but in the future it could be expanded to further options. The HTTPS enforcement only allows the admin to enforce it, if he is connected via HTTPS. (To prevent admins to enable it without a proper SSL setup)
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 95b7a503c27..ab218377fb3 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -30,4 +30,8 @@ $(document).ready(function(){
}
OC.AppConfig.setValue('core', $(this).attr('name'), value);
});
+
+ $('#security').change(function(){
+ $.post(OC.filePath('settings','ajax','setsecurity.php'), { enforceHTTPS: $('#enforceHTTPSEnabled').val() },function(){} );
+ });
});